diff --git a/cmake/sample_defs/arch_build_custom.cmake b/cmake/sample_defs/arch_build_custom.cmake index a7ebb1a6b..11a73d3cb 100644 --- a/cmake/sample_defs/arch_build_custom.cmake +++ b/cmake/sample_defs/arch_build_custom.cmake @@ -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