Allow -Wmissing-prototypes only for C

It should fix:
	cc1plus: warning: command line option `-Wmissing-prototypes' is valid for Ada/C/ObjC but not for C++ [enabled by default]

(only g++ complains, clang is OK with -Wmissing-prototypes)

svn path=/trunk/; revision=54086
This commit is contained in:
Jakub Zawadzki 2013-12-14 10:43:29 +00:00
parent 5c79cbf152
commit 53f438b4ed
1 changed files with 1 additions and 1 deletions

View File

@ -801,7 +801,7 @@ AC_ARG_ENABLE(extra-gcc-checks,
#
# All the registration functions block these for now.
#
AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wmissing-prototypes)
AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wmissing-prototypes, C)
AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wmissing-declarations)
#
# A bunch of "that might not work on SPARC" code blocks