[systemd-devel] [PATCH] configure: add -Wno-cast-align to CFLAGS

Shawn Landden shawnlandden at gmail.com
Mon Jul 15 18:22:55 PDT 2013


these warnings on !x86 arches for good code are annoying, and
there is no way to mark the offending code safe, so I guess we are
just going to have to deal with the resulting problems as we
come across them. Also, these warnings are present for armv6+armv7,
when they moreso effect armv5.
---
 configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index afbe8e9..709262e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -129,6 +129,7 @@ CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
         -Wno-unused-parameter \
         -Wno-missing-field-initializers \
         -Wno-unused-result \
+        -Wno-cast-align \
         -Werror=overflow \
         -ffast-math \
         -fno-common \
-- 
1.8.3.2



More information about the systemd-devel mailing list