mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-24 02:23:27 +08:00
Compile with '-Wpedantic' in devel mode as an attempt to get gcc-ism
This commit is contained in:
parent
c6637a835d
commit
2d82e8fee7
1
aclocal.m4
vendored
1
aclocal.m4
vendored
@ -950,6 +950,7 @@ AC_DEFUN(AC_LBL_DEVEL,
|
||||
AC_LBL_CHECK_COMPILER_OPT($1, -Wcast-qual)
|
||||
AC_LBL_CHECK_COMPILER_OPT($1, -Wshadow)
|
||||
AC_LBL_CHECK_COMPILER_OPT($1, -Wdeclaration-after-statement)
|
||||
AC_LBL_CHECK_COMPILER_OPT($1, -Wpedantic)
|
||||
AC_LBL_CHECK_COMPILER_OPT($1, -W)
|
||||
fi
|
||||
AC_LBL_CHECK_DEPENDENCY_GENERATION_OPT()
|
||||
|
32
configure
vendored
32
configure
vendored
@ -7912,6 +7912,38 @@ fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpedantic option" >&5
|
||||
$as_echo_n "checking whether the compiler supports the -Wpedantic option... " >&6; }
|
||||
save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors -Wpedantic"
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
return 0
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_compile "$LINENO"; then :
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
CFLAGS="$save_CFLAGS"
|
||||
V_CCOPT="$V_CCOPT -Wpedantic"
|
||||
|
||||
else
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
CFLAGS="$save_CFLAGS"
|
||||
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -W option" >&5
|
||||
$as_echo_n "checking whether the compiler supports the -W option... " >&6; }
|
||||
save_CFLAGS="$CFLAGS"
|
||||
|
Loading…
Reference in New Issue
Block a user