IOT-1583: Adding /W4 and /WX to sqlite3 build. 43/17343/4
authorPawel Winogrodzki <pawelwi@microsoft.com>
Wed, 15 Feb 2017 03:01:24 +0000 (19:01 -0800)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Wed, 22 Feb 2017 17:57:47 +0000 (17:57 +0000)
Making sure any version changes of sqlite3 don't introduce
level 4 warnings.

Change-Id: I7eb89e4f4bf9c06d5b0f3e2981770fd89bb623bb
Signed-off-by: Pawel Winogrodzki <pawelwi@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17343
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
extlibs/sqlite3/SConscript

index 8c563a6..97e4c67 100755 (executable)
@@ -40,6 +40,7 @@ if target_os in targets_need_sqlite:
         shutil.rmtree(sqlite_tmp_dir)
 
 if target_os in ['windows']:
+    sqlite_env.AppendUnique(CCFLAGS = ['/W4', '/WX'])
     libsqlite3 = sqlite_env.StaticLibrary('sqlite3', sqlite_c)
     # In multi-threaded builds, SCons appears to proceed to using sqlite3.lib
     # before finishing InstallTarget(libsqlite3, 'sqlite3') here. So, use the