For now: treat GCC 4.6 'unused-but-set' reports as just warnings (i.e., when -Werror).

GCC 4.6 has added 'unused but set' reports so this change allows builds to proceed without
erroring out for those building from SVN with GCC 4.6.

(AFAIK Wireshark source distributions do not enable -Werror).

This change can be removed (at least globally) once the code as been fixed.



svn path=/trunk/; revision=38311
This commit is contained in:
Bill Meier 2011-08-02 16:17:25 +00:00
parent 9363362f5f
commit 6e97a2e143
1 changed files with 2 additions and 1 deletions

View File

@ -370,7 +370,8 @@ 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)
AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wno-error=unused-but-set-variable) ## for now
AC_WIRESHARK_GCC_CFLAGS_CHECK(-Wno-error=unused-but-set-parameter) ## for now
#
# Use the faster pre gcc 4.5 floating point precision if available;
# clang doesn't error out on -f options that it doesn't know about,