From d334fafe25f7cca5e5c6e5c89ab5f01e5111f9a7 Mon Sep 17 00:00:00 2001 From: Jacob Hageman Date: Thu, 10 Nov 2022 21:41:37 +0000 Subject: [PATCH] Fix #2205, Enforce strict cast alignment on arch --- cmake/sample_defs/arch_build_custom.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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