summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2009-09-30 11:53:29 +0000
committerPierre Joye <pajoye@php.net>2009-09-30 11:53:29 +0000
commita4cbecd20c4851d74c6dab116cf05a4f2497c8a8 (patch)
treea852d2aa6a7b912a95d9b3f49666744897c1c164 /win32
parent809dbcda08514357b03d05bb7449679d6dbcce4d (diff)
downloadphp-git-a4cbecd20c4851d74c6dab116cf05a4f2497c8a8.tar.gz
- restore W3 flag to get usefull errors (unused vars, etc.)
Diffstat (limited to 'win32')
-rw-r--r--win32/build/config.w324
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/build/config.w32 b/win32/build/config.w32
index 769e67afdd..6819ab38e0 100644
--- a/win32/build/config.w32
+++ b/win32/build/config.w32
@@ -119,7 +119,7 @@ DEFINE('CFLAGS_PHP_OBJ', '$(CFLAGS_PHP) $(STATIC_EXT_CFLAGS)');
// General CFLAGS for building objects
DEFINE("CFLAGS", "/nologo /FD $(BASE_INCLUDES) /D _WINDOWS \
-/D ZEND_WIN32=1 /D PHP_WIN32=1 /D WIN32 /D _MBCS");
+/D ZEND_WIN32=1 /D PHP_WIN32=1 /D WIN32 /D _MBCS /W3 ");
if (VCVERS < 1400) {
// Enable automatic precompiled headers
@@ -177,7 +177,7 @@ DEFINE("LIBS", "kernel32.lib ole32.lib user32.lib advapi32.lib shell32.lib ws2_3
// Set some debug/release specific options
if (PHP_DEBUG == "yes") {
- ADD_FLAG("CFLAGS", "/LDd /MDd /Gm /Od /D _DEBUG /D ZEND_DEBUG=1 " +
+ ADD_FLAG("CFLAGS", "/LDd /MDd /W3 /Gm /Od /D _DEBUG /D ZEND_DEBUG=1 " +
(X64?"/Zi":"/ZI"));
ADD_FLAG("LDFLAGS", "/debug");
// Avoid problems when linking to release libraries that use the release