From 6e97a2e1431022d0c5dabdf61762a425944c3f12 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Tue, 2 Aug 2011 16:17:25 +0000 Subject: [PATCH] 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 --- configure.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 3c880361cc..72264ee030 100644 --- a/configure.in +++ b/configure.in @@ -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,