diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2005-07-16 14:17:51 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2005-07-16 14:17:51 +0000 |
commit | 87fbb651f896c031ec67452dfef71000aad84458 (patch) | |
tree | 5b1768cf44367ca62e49b6efd0e18557e36b689c /fixincludes/configure.ac | |
parent | 84fc24e8a0955d26e26f81f5a393fccf69156916 (diff) | |
download | gcc-87fbb651f896c031ec67452dfef71000aad84458.tar.gz |
Makefile.in (WARN_CFLAGS): New.
* Makefile.in (WARN_CFLAGS): New.
(.c.o): Add $(WARN_CFLAGS).
* aclocal.m4: Include ../config/warnings.m4.
* configure.ac: Invoke ACX_PROG_CC_WARNING_OPTS,
ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and
ACX_PROG_CC_WARNINGS_ARE_ERRORS.
* fixopts.c (initialize_opts): Fix old-style definintion.
* configure: Regenerate.
From-SVN: r102088
Diffstat (limited to 'fixincludes/configure.ac')
-rw-r--r-- | fixincludes/configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fixincludes/configure.ac b/fixincludes/configure.ac index 46296049f31..04305fe63b7 100644 --- a/fixincludes/configure.ac +++ b/fixincludes/configure.ac @@ -6,6 +6,18 @@ AC_CONFIG_AUX_DIR(..) AC_CANONICAL_SYSTEM AC_PROG_CC +# Figure out what compiler warnings we can enable. +# See config/warnings.m4 for details. + +ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \ + -Wmissing-prototypes -Wold-style-definition \ + -Wmissing-format-attribute]) +ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([-Wno-long-long]) + +# Only enable with --enable-werror-always until existing warnings are +# corrected. +ACX_PROG_CC_WARNINGS_ARE_ERRORS([manual]) + # Determine the noncanonical target name, for directory use. ACX_NONCANONICAL_TARGET |