mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-27 03:53:53 +08:00
Autoconf, CMake: Add a warning flag (-Wundef)
This commit is contained in:
parent
bfc96b0483
commit
656bd18c72
@ -1023,6 +1023,7 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/.devel OR EXISTS ${CMAKE_BINARY_DIR}/.devel)
|
||||
check_and_add_compiler_option(-Wshadow)
|
||||
check_and_add_compiler_option(-Wsign-compare)
|
||||
check_and_add_compiler_option(-Wstrict-prototypes)
|
||||
check_and_add_compiler_option(-Wundef)
|
||||
check_and_add_compiler_option(-Wunreachable-code-return)
|
||||
check_and_add_compiler_option(-Wused-but-marked-unused)
|
||||
check_and_add_compiler_option(-Wwrite-strings)
|
||||
|
1
aclocal.m4
vendored
1
aclocal.m4
vendored
@ -762,6 +762,7 @@ AC_DEFUN(AC_LBL_DEVEL,
|
||||
AC_LBL_CHECK_COMPILER_OPT($1, -Wshadow)
|
||||
AC_LBL_CHECK_COMPILER_OPT($1, -Wsign-compare)
|
||||
AC_LBL_CHECK_COMPILER_OPT($1, -Wstrict-prototypes)
|
||||
AC_LBL_CHECK_COMPILER_OPT($1, -Wundef)
|
||||
AC_LBL_CHECK_COMPILER_OPT($1, -Wunreachable-code-return)
|
||||
AC_LBL_CHECK_COMPILER_OPT($1, -Wunused-but-set-parameter)
|
||||
AC_LBL_CHECK_COMPILER_OPT($1, -Wunused-but-set-variable)
|
||||
|
Loading…
Reference in New Issue
Block a user