Remove -Wdeclaration-after-statement
This is a C99 feature which we can use now. Change-Id: I84a63d6bf282b79c9f0da0543b3b4f5a0cf0c81a Reviewed-on: https://code.wireshark.org/review/17733 Reviewed-by: João Valverde <j@v6e.pt> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
parent
41567191d8
commit
05ae6a7560
|
@ -419,7 +419,6 @@ else()
|
|||
set(C_WARN_FLAGS
|
||||
# The following are C only, not C++
|
||||
-Wc++-compat
|
||||
-Wdeclaration-after-statement
|
||||
-Wshadow
|
||||
-Wno-pointer-sign
|
||||
-Wold-style-definition
|
||||
|
|
|
@ -591,7 +591,6 @@ AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wheader-guard)
|
|||
# The following are C only, not C++
|
||||
#
|
||||
AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wc++-compat, C)
|
||||
AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wdeclaration-after-statement, C)
|
||||
AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wunused-const-variable, C)
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue