- fix some gcc warnings
[m6w6/ext-http] / config.m4
index 2f8399cfd387c0bb65d6de838a15d54d7147bdf2..3967b1fe15b37ce9629874d0a6ce96690f937d5b 100644 (file)
--- a/config.m4
+++ b/config.m4
@@ -79,6 +79,10 @@ dnl ----
        PHP_NEW_EXTENSION([http], $PHP_HTTP_SOURCES, [$ext_shared])
        PHP_SUBST([HTTP_SHARED_LIBADD])
        PHP_ADD_MAKEFILE_FRAGMENT
+       if ! test -z "$HTTP_ODD_WARNINGS"; then
+               CFLAGS=" -g -O2 -W -Wchar-subscripts -Wformat=2 -Wno-format-y2k -Wimplicit -Wmissing-braces -Wunused-variable -Wbad-function-cast -Wpointer-arith -Wsign-compare -Winline"
+               PHP_SUBST([CFLAGS])
+       fi
        AC_DEFINE([HAVE_HTTP], [1], [Have extended HTTP support])
 fi