diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2014-03-24 23:50:24 -0300 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2014-03-24 23:50:24 -0300 |
commit | db62153ea0beedbc6941e1d438c0b6e7189e78d9 (patch) | |
tree | 6e45dfc03848934e55abc8df11ee748cd6853a04 | |
parent | f87dc57a7189bea4777fd645576a7ab1b71e4b96 (diff) | |
download | kmod-db62153ea0beedbc6941e1d438c0b6e7189e78d9.tar.gz |
build-sys: try harder to shut up compiler wrt strict-aliasing
With -Wstrict-aliasing=2 we get the following warning:
libkmod/libkmod-signature.c:124:20: note: in expansion of macro 'get_unaligned'
sig_len = be32toh(get_unaligned(&modsig->sig_len));
However there's nothing wrong with it. modsig->sig_len is uint32_t and
get_unaligned in this case returns uint32_t. There's notstrict aliasing
violation.
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index e95942a..f2070c6 100644 --- a/configure.ac +++ b/configure.ac @@ -164,7 +164,7 @@ CC_CHECK_FLAGS_APPEND(with_cflags, [CFLAGS], [\ -Wmissing-noreturn \ -Wshadow \ -Wendif-labels \ - -Wstrict-aliasing=2 \ + -Wstrict-aliasing=3 \ -Wwrite-strings \ -Wno-long-long \ -Wno-overlength-strings \ |