diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-08-16 04:02:41 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-08-16 04:02:41 +0000 |
commit | 0063a93acaab916eb92628c26127808f9565cdac (patch) | |
tree | 686ad1a1880232dca0e6f428f01c0965062dc906 /c/src/aclocal/prog-cc.m4 | |
parent | 2008-08-15 Allan Hessenflow <allanh@kallisti.com> (diff) | |
download | rtems-0063a93acaab916eb92628c26127808f9565cdac.tar.bz2 |
2008-08-16 Ralf Corsepius <ralf.corsepius@rtems.org>
* aclocal/prog-cc.m4: Add -Wimplicit-function-declaration
-Wstrict-prototypes to RTEMS_CFLAGS.
Diffstat (limited to 'c/src/aclocal/prog-cc.m4')
-rw-r--r-- | c/src/aclocal/prog-cc.m4 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/c/src/aclocal/prog-cc.m4 b/c/src/aclocal/prog-cc.m4 index cb8c4e86d6..19d758e40b 100644 --- a/c/src/aclocal/prog-cc.m4 +++ b/c/src/aclocal/prog-cc.m4 @@ -35,10 +35,12 @@ GCCSPECS="-B\$(PROJECT_ROOT)/lib/ -B\$(PROJECT_ROOT)/$RTEMS_BSP/lib/" GCCSPECS="${GCCSPECS} -specs bsp_specs -qrtems"]) AC_SUBST(GCCSPECS) -if test "$GCC" = yes; then +AS_IF([test "$GCC" = yes],[ RTEMS_CFLAGS="$RTEMS_CFLAGS -Wall" +# FIXME: This should be removed in production releases +RTEMS_CFLAGS="$RTEMS_CFLAGS -Wimplicit-function-declaration -Wstrict-prototypes" m4_if([$1],,[],[RTEMS_CFLAGS="$RTEMS_CFLAGS $1"]) -fi +]) AC_SUBST(RTEMS_CFLAGS) AS_IF([test x"$rtems_cv_gcc_isystem" = xyes],[ |