temporarily disable cast-align warnings

svn path=/trunk/; revision=21821
This commit is contained in:
Sebastien Tandel 2007-05-18 00:04:58 +00:00
parent e545636a4f
commit 55a4b5ad93
2 changed files with 5 additions and 3 deletions

View file

@ -172,7 +172,8 @@ AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wdeclaration-after-statement)
AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wendif-labels) AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wendif-labels)
AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wpointer-arith) AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wpointer-arith)
AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wno-pointer-sign) AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wno-pointer-sign)
AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wcast-align) #Temporary disable this flags until complete elimination of 'cast increases required alignment'
#AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wcast-align)
# #
# If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well, # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well,
@ -497,7 +498,7 @@ if test "x$enable_gtk2" = "xyes" -a \
"(" "x$enable_wireshark" = "xyes" -o "x$enable_wireshark" = "xifgtkavailable" ")"; then "(" "x$enable_wireshark" = "xyes" -o "x$enable_wireshark" = "xifgtkavailable" ")"; then
GTK_OK=two GTK_OK=two
AM_PATH_GTK_2_0(2.0.0, CFLAGS="$CFLAGS $GTK_CFLAGS", GTK_OK=no, gthread) AM_PATH_GTK_2_0(2.0.0, CFLAGS="$CFLAGS $GTK_CFLAGS", GTK_OK=no, gthread)
elif test "x$enable_gtk2" != "xyes" \ elif test "x$enable_gtk2" != "xyes" -a \
-a "(" "x$enable_wireshark" = "xyes" -o "x$enable_wireshark" = "xifgtkavailable" ")"; then -a "(" "x$enable_wireshark" = "xyes" -o "x$enable_wireshark" = "xifgtkavailable" ")"; then
GTK_OK=one GTK_OK=one
AM_PATH_GTK(1.2.0, CFLAGS="$CFLAGS $GTK_CFLAGS", GTK_OK=no ) AM_PATH_GTK(1.2.0, CFLAGS="$CFLAGS $GTK_CFLAGS", GTK_OK=no )

View file

@ -43,7 +43,8 @@ AC_WIRETAP_GCC_CFLAGS_CHECK(-Wendif-labels)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wpointer-arith) AC_WIRETAP_GCC_CFLAGS_CHECK(-Wpointer-arith)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wbad-function-cast) AC_WIRETAP_GCC_CFLAGS_CHECK(-Wbad-function-cast)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wcast-qual) AC_WIRETAP_GCC_CFLAGS_CHECK(-Wcast-qual)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wcast-align) #Temporary disable this flags until complete elimination of 'cast increases required alignment'
#AC_WIRETAP_GCC_CFLAGS_CHECK(-Wcast-align)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wwrite-strings) AC_WIRETAP_GCC_CFLAGS_CHECK(-Wwrite-strings)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wshorten-64-to-32) AC_WIRETAP_GCC_CFLAGS_CHECK(-Wshorten-64-to-32)
AC_WIRETAP_GCC_CFLAGS_CHECK(-Wstrict-prototypes) AC_WIRETAP_GCC_CFLAGS_CHECK(-Wstrict-prototypes)