- gl_WARNING_CFLAGS([-Wbad-function-cast])
- gl_WARNING_CFLAGS([-Wmissing-declarations])
- gl_WARNING_CFLAGS([-Wmissing-prototypes])
- gl_WARNING_CFLAGS([-Wshadow])
- gl_WARNING_CFLAGS([-Wstrict-prototypes])
+ gl_WARN_ADD([-Wbad-function-cast])
+ gl_WARN_ADD([-Wmissing-declarations])
+ gl_WARN_ADD([-Wmissing-prototypes])
+ gl_WARN_ADD([-Wshadow])
+ gl_WARN_ADD([-Wstrict-prototypes])
+ AC_SUBST([WARN_CFLAGS])
+ # Warnings for the test suite only.
+ gl_WARN_ADD([-Wundef], [WARN_CFLAGS_TEST])
+ WARN_CXXFLAGS_TEST="$WARN_CXXFLAGS $WARN_CFLAGS_TEST"
+ WARN_CFLAGS_TEST="$WARN_CFLAGS $WARN_CFLAGS_TEST"
+ AC_SUBST([WARN_CXXFLAGS_TEST])
+ AC_SUBST([WARN_CFLAGS_TEST])