Enable every build warning possible.
| From: | Richard Quadling | Date: | Thu, 15 Sep 2011 14:25:05 +0000 |
| Subject: | Enable every build warning possible. | ||
| Groups: | php.internals.win | ||
| Request: | Send a blank email to internals-win+get-835@lists.php.net to get a copy of this message | ||
Just in case you ever felt like wading through a 35+MB compiler log file.
Index: win32/build/config.w32
===================================================================
--- win32/build/config.w32 (revision 316815)
+++ win32/build/config.w32 (working copy)
@@ -418,3 +418,10 @@
ADD_FLAG("CFLAGS", " /analyze ");
ADD_FLAG("CFLAGS", " /wd6308 ");
}
+
+ARG_ENABLE("verbose-compilation", "Enable all warnings for the
compiler and linker", "no");
+if (PHP_VERBOSE_COMPILATION == "yes") {
+ ADD_FLAG("CFLAGS"," /Wall ");
+ ADD_FLAG("LDFLAGS", " /verbose ");
+ STDOUT.WriteLine("Enabling all warnings for the compiler and linker");
+}
And then add --enable-verbose-compilation=yes to the configure.
Enjoy.
Redirecting the output of nmake to a log file would probably be a good idea!
Richard.
--
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea
Index: win32/build/config.w32 =================================================================== --- win32/build/config.w32 (revision 316815) +++ win32/build/config.w32 (working copy) @@ -418,3 +418,10 @@ ADD_FLAG("CFLAGS", " /analyze "); ADD_FLAG("CFLAGS", " /wd6308 "); } + +ARG_ENABLE("verbose-compilation", "Enable all warnings for the compiler and linker", "no"); +if (PHP_VERBOSE_COMPILATION == "yes") { + ADD_FLAG("CFLAGS"," /Wall "); + ADD_FLAG("LDFLAGS", " /verbose "); + STDOUT.WriteLine("Enabling all warnings for the compiler and linker"); +}
Index: win32/build/config.w32 =================================================================== --- win32/build/config.w32 (revision 316815) +++ win32/build/config.w32 (working copy) @@ -418,3 +418,10 @@ ADD_FLAG("CFLAGS", " /analyze "); ADD_FLAG("CFLAGS", " /wd6308 "); } + +ARG_ENABLE("verbose-compilation", "Enable all warnings for the compiler and linker", "no"); +if (PHP_VERBOSE_COMPILATION == "yes") { + ADD_FLAG("CFLAGS"," /Wall "); + ADD_FLAG("LDFLAGS", " /verbose "); + STDOUT.WriteLine("Enabling all warnings for the compiler and linker"); +}