- BISON_WARNING(-Wall)
- BISON_WARNING(-W)
- BISON_WARNING(-Wbad-function-cast)
- BISON_WARNING(-Wcast-align)
- BISON_WARNING(-Wcast-qual)
- BISON_WARNING(-Wformat)
- BISON_WARNING(-Wmissing-declarations)
- BISON_WARNING(-Wmissing-prototypes)
- BISON_WARNING(-Wnested-externs)
- BISON_WARNING(-Wshadow)
- BISON_WARNING(-Wstrict-prototypes)
- BISON_WARNING(-Wwrite-strings)
+ gl_WARNING_CFLAGS([-Wall])
+ gl_WARNING_CFLAGS([-Wextra -Wno-sign-compare])
+ gl_WARNING_CFLAGS([-Wcast-align])
+ gl_WARNING_CFLAGS([-Wcast-qual])
+ gl_WARNING_CFLAGS([-Wformat])
+ gl_WARNING_CFLAGS([-Wpointer-arith])
+ gl_WARNING_CFLAGS([-Wwrite-strings])
+ AC_SUBST([WARNING_CXXFLAGS], [$WARNING_CFLAGS])
+ # The following warnings are not suitable for C++.
+ 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])