From 0063a93acaab916eb92628c26127808f9565cdac Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sat, 16 Aug 2008 04:02:41 +0000 Subject: 2008-08-16 Ralf Corsepius * aclocal/prog-cc.m4: Add -Wimplicit-function-declaration -Wstrict-prototypes to RTEMS_CFLAGS. --- cpukit/aclocal/prog-cc.m4 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cpukit/aclocal/prog-cc.m4') diff --git a/cpukit/aclocal/prog-cc.m4 b/cpukit/aclocal/prog-cc.m4 index 834b0b55c0..c050b8a4fd 100644 --- a/cpukit/aclocal/prog-cc.m4 +++ b/cpukit/aclocal/prog-cc.m4 @@ -25,10 +25,12 @@ dnl check if the target compiler may use --pipe RTEMS_GCC_PIPE test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe" -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) RTEMS_CPPFLAGS="-I\$(top_builddir) -I\$(PROJECT_INCLUDE)" -- cgit v1.2.3