diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-06-27 10:35:06 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-06-27 10:35:06 +0000 |
commit | b450609a5561db9ddfc23b41c742979f5c4b3a32 (patch) | |
tree | f51bb7f4d9147b20b7ee5fba3783bf588fde6423 /configure.ac | |
parent | f3f156073b7fed7db2e8a7a7364873675dbfb097 (diff) | |
download | wireshark-b450609a5561db9ddfc23b41c742979f5c4b3a32.tar.gz wireshark-b450609a5561db9ddfc23b41c742979f5c4b3a32.tar.bz2 wireshark-b450609a5561db9ddfc23b41c742979f5c4b3a32.zip |
For now, don't turn on -Wcast-align by default. There are at least some
bugs it points out that probably mean the code won't work on machines
that require alignment (e.g., SPARC machines), but we'll turn it on once
we fix them. (clang is fussier than GCC about this.)
svn path=/trunk/; revision=50187
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index da7d663e32..707ed4c442 100644 --- a/configure.ac +++ b/configure.ac @@ -561,6 +561,11 @@ AC_ARG_ENABLE(extra-gcc-checks, # AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wmissing-prototypes) AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wmissing-declarations) + # + # A bunch of "that might not work on SPARC" code blocks + # this one for now. + # + AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wcast-align) fi ],) AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wall -W) # -W is now known as -Wextra @@ -570,7 +575,6 @@ AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wendif-labels) AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wpointer-arith) AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wno-pointer-sign, C) AC_WIRESHARK_GCC_CFLAGS_CHECK(-Warray-bounds) -AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wcast-align) AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wformat-security) AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wold-style-definition, C) AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wshorten-64-to-32) |