]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Add an option to the MSVC makefile to enable treating warnings as errors.
authormistachkin <mistachkin@noemail.net>
Wed, 1 Feb 2017 22:32:49 +0000 (22:32 +0000)
committermistachkin <mistachkin@noemail.net>
Wed, 1 Feb 2017 22:32:49 +0000 (22:32 +0000)
FossilOrigin-Name: 6a378c29b43d61313ca9daa599e59d8eeeed9a27

Makefile.msc
autoconf/Makefile.msc
manifest
manifest.uuid

index d4aba301fba3c705a80df5fee4c57b7e6775761b..4a29f913c8061902845c0211ae6ddbfe321bd9ec 100644 (file)
@@ -24,6 +24,13 @@ USE_AMALGAMATION = 1
 USE_FULLWARN = 0
 !ENDIF
 
+# Set this non-0 to enable treating warnings as errors (-WX, etc) when
+# compiling.
+#
+!IFNDEF USE_FATAL_WARN
+USE_FATAL_WARN = 0
+!ENDIF
+
 # Set this non-0 to enable full runtime error checks (-RTC1, etc).  This
 # has no effect if (any) optimizations are enabled.
 #
@@ -493,6 +500,12 @@ TCC = $(CC) -nologo -W4 -DINCLUDE_MSVC_H=1 $(CCOPTS) $(TCCOPTS)
 TCC = $(CC) -nologo -W3 $(CCOPTS) $(TCCOPTS)
 !ENDIF
 
+# Check if warnings should be treated as errors when compiling.
+#
+!IF $(USE_FATAL_WARN)!=0
+TCC = $(TCC) -WX
+!ENDIF
+
 TCC = $(TCC) -DSQLITE_OS_WIN=1 -I. -I$(TOP) -I$(TOP)\src -fp:precise
 RCC = $(RC) -DSQLITE_OS_WIN=1 -I. -I$(TOP) -I$(TOP)\src $(RCOPTS) $(RCCOPTS)
 
index b53e2370eb07db66506d936ef920163197ec9a13..32d03dbf354622b6480f435891a5f9de5744e907 100644 (file)
@@ -24,6 +24,13 @@ TOP = .
 USE_FULLWARN = 0
 !ENDIF
 
+# Set this non-0 to enable treating warnings as errors (-WX, etc) when
+# compiling.
+#
+!IFNDEF USE_FATAL_WARN
+USE_FATAL_WARN = 0
+!ENDIF
+
 # Set this non-0 to enable full runtime error checks (-RTC1, etc).  This
 # has no effect if (any) optimizations are enabled.
 #
@@ -454,6 +461,12 @@ TCC = $(CC) -nologo -W4 -DINCLUDE_MSVC_H=1 $(CCOPTS) $(TCCOPTS)
 TCC = $(CC) -nologo -W3 $(CCOPTS) $(TCCOPTS)
 !ENDIF
 
+# Check if warnings should be treated as errors when compiling.
+#
+!IF $(USE_FATAL_WARN)!=0
+TCC = $(TCC) -WX
+!ENDIF
+
 TCC = $(TCC) -DSQLITE_OS_WIN=1 -I. -I$(TOP) -fp:precise
 RCC = $(RC) -DSQLITE_OS_WIN=1 -I. -I$(TOP) $(RCOPTS) $(RCCOPTS)
 
index 8bb675991a7565e7d3069eccd1d236c705d4f708..2bea70b5b457778c6ad3675c3ad181602fdaf62a 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,8 +1,8 @@
-C Unwind\sthe\sRTREE\sdimension\sloop\sinside\sof\srtreeCallbackConstraint().
-D 2017-02-01T17:08:56.249
+C Add\san\soption\sto\sthe\sMSVC\smakefile\sto\senable\streating\swarnings\sas\serrors.
+D 2017-02-01T22:32:49.021
 F Makefile.in 5f415e7867296d678fed2e6779aea10c1318b4bc
 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434
-F Makefile.msc b8ca53350ae545e3562403d5da2a69cec79308da
+F Makefile.msc ba953c8921fc7e18333f61898007206de7e23964
 F README.md 8ecc12493ff9f820cdea6520a9016001cb2e59b7
 F VERSION cddd8d88dc8202afa0ebc96da61fc4acbd1e96a5
 F aclocal.m4 a5c22d164aff7ed549d53a90fa56d56955281f50
@@ -11,7 +11,7 @@ F art/sqlite370.ico af56c1d00fee7cd4753e8631ed60703ed0fc6e90
 F art/sqlite370.jpg d512473dae7e378a67e28ff96a34da7cb331def2
 F autoconf/INSTALL 83e4a25da9fd053c7b3665eaaaf7919707915903
 F autoconf/Makefile.am 1a47d071e3d5435f8f7ebff7eb6703848bbd65d4
-F autoconf/Makefile.msc b6d27f735911fd09a589d3c966936c47a5850c17
+F autoconf/Makefile.msc 3f29e0fc2a78e113250d79a5da375c1d8d8c06b0
 F autoconf/README.first 6c4f34fe115ff55d4e8dbfa3cecf04a0188292f7
 F autoconf/README.txt 4f04b0819303aabaa35fff5f7b257fb0c1ef95f1
 F autoconf/configure.ac cacf2616abf6e4a569bde2ef365c143caeec40bc
@@ -1552,7 +1552,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
 F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
 F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
-P 3c4c0126c287f844220b65e00fec17c059fbb7c8
-R f35bf88856ef1a64759d9b647928073d
-U drh
-Z 9add4b4d28dce63431ad3a0684bb5601
+P 4854ea9c18e7d8066c90b41568d0fae97b01ea6d
+R edeb8ee1db3973795f07ac14a992bc66
+U mistachkin
+Z 3bfb007e12a85d09e541803b4d02a604
index 8728c8d9a3e214dbd133acdddb5bd9184eadb2a1..72864f657bb6d15c4cf977a30bfc96d7a8f5eb80 100644 (file)
@@ -1 +1 @@
-4854ea9c18e7d8066c90b41568d0fae97b01ea6d
\ No newline at end of file
+6a378c29b43d61313ca9daa599e59d8eeeed9a27
\ No newline at end of file