Skip to content

Commit

Permalink
Merge pull request #2206 from skliper/fix2205-strict_cast_align
Browse files Browse the repository at this point in the history
Fix #2205, Enforce strict cast alignment on arch
  • Loading branch information
dzbaker committed Nov 23, 2022
2 parents ec51e6f + d334faf commit 348a98b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/sample_defs/arch_build_custom.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ add_compile_options(
-Wstrict-prototypes # Warn about missing prototypes
-Wwrite-strings # Warn if not treating string literals as "const"
-Wpointer-arith # Warn about suspicious pointer operations
-Wcast-align # Warn about casts that increase alignment requirements
-Wcast-align=strict # Warn about casts that increase alignment requirements
-Werror # Treat warnings as errors (code should be clean)
-Wno-format-truncation # Inhibit printf-style format truncation warnings
-Wno-stringop-truncation # Inhibit string operation truncation warnings
Expand Down

0 comments on commit 348a98b

Please sign in to comment.