Name: Anonymous 2010-08-29 6:05
I want to compile a C99 program in GCC 4.4.4 but I want to do it in EXTREME WARNING MODE.
How do I do that?
How do I do that?
AC_DEFUN([ENABLE_WARNINGS],[
AC_ARG_ENABLE(warnings,
[ --enable-warnings enable warnings for GCC ],
[enable_warnings=$enableval], [warnings=no])
if test "x$enable_warnings" != xno ; then
[warning_cflags="-Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wchar-subscripts -Wredundant-decls -pedantic"]
if test "x$enable_warnings" != xyes ; then
[warning_cflags="$warning_cflags $enable_warnings"]
fi
fi
AC_SUBST([warning_cflags])
])
int always_returns_three(int x)
{
(void)x;
return 3;
}