From c36f0e71b6f6e2e04a5ad0ed96887c502452bef8 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 18 Nov 2008 20:13:55 +0000 Subject: attempting to keep lines below 80 chars --- ares/m4/cares-compilers.m4 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ares/m4/cares-compilers.m4') diff --git a/ares/m4/cares-compilers.m4 b/ares/m4/cares-compilers.m4 index 84f813bd1..ba5815d1a 100644 --- a/ares/m4/cares-compilers.m4 +++ b/ares/m4/cares-compilers.m4 @@ -16,7 +16,7 @@ #*************************************************************************** # File version for 'aclocal' use. Keep it a single number. -# serial 45 +# serial 46 dnl CARES_CHECK_COMPILER @@ -875,6 +875,13 @@ AC_DEFUN([CARES_SET_COMPILER_WARNING_OPTS], [ tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement" fi # + dnl Only gcc 4.3 or later + if test "$compiler_num" -ge "403"; then + tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration" + tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body" + tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers" + fi + # fi # dnl Do not issue warnings for code in system include paths. -- cgit v1.2.3