Enable every build warning possible.

[email protected] (Richard Quadling)
Newsgroups php.internals.win
Message-ID <CAKUjMCXWL-+gUodUmWyV9wPrBB0uN9rEWp3omEAi7e1d7FH+ig@mail.gmail.com>
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
VerboseBuild.patch.txt (text/plain, 566 B)
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");
+}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.