Warning Flags Disappeared
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue May 8 07:17:07 UTC 2018
This change adds the warning flags. I don't know why CFLAGS is now
present. There could be a problem somewhere else.
diff --git a/c/src/configure.ac b/c/src/configure.ac
index f4428ed221..7e4986e03d 100644
--- a/c/src/configure.ac
+++ b/c/src/configure.ac
@@ -100,7 +100,7 @@ RTEMS_PROG_CCAS
RTEMS_CANONICALIZE_TOOLS
# Append warning flags if CFLAGS wasn't set.
-AS_IF([test "$GCC" = yes && test "$rtems_cv_CFLAGS_set" != set],
+AS_IF([test "$GCC" = yes],
[CFLAGS="$CFLAGS -Wall -Wmissing-prototypes
-Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs"])
AS_IF([test -n "${CFLAGS}"],[
On 19/04/18 15:18, Sebastian Huber wrote:
> The problem is in c/src/configure.ac:
>
> # Was CFLAGS set?
> rtems_cv_CFLAGS_set="${CFLAGS+set}"
>
> In this line CFLAGS is set. Later we have:
>
> # Append warning flags if CFLAGS wasn't set.
> AS_IF([test "$GCC" = yes && test "$rtems_cv_CFLAGS_set" != set],
> [CFLAGS="$CFLAGS -Wall -Wmissing-prototypes
> -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs"])
>
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel
mailing list