diff options
author | José Fonseca <[email protected]> | 2008-06-02 18:27:00 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-06-02 19:46:18 +0900 |
commit | 5463420741744c39849a038b6079a7b46ddcb729 (patch) | |
tree | bf0ebf3c496389f17db6c42000470e98c3e7b98e /common.py | |
parent | 5b86ae60fe339ae0b813d16ec328a68ccb2b9514 (diff) |
scons: Set /W3 warning level for all MSVC based platforms.
Diffstat (limited to 'common.py')
-rw-r--r-- | common.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/common.py b/common.py index c040c6ddd4a..8b70e9b4261 100644 --- a/common.py +++ b/common.py @@ -253,10 +253,13 @@ def generate(env): '/Gh', # enable _penter hook function '/GH', # enable _pexit hook function ] + cflags += [ + '/W3', # warning level + #'/Wp64', # enable 64 bit porting warnings + ] if platform == 'windows': cflags += [ # TODO - #'/Wp64', # enable 64 bit porting warnings ] if platform == 'winddk': cflags += [ @@ -264,7 +267,6 @@ def generate(env): '/Zp8', # 8bytes struct member alignment '/Gy', # separate functions for linker '/Gm-', # disable minimal rebuild - '/W3', # warning level '/WX', # treat warnings as errors '/Gz', # __stdcall Calling convention '/GX-', # disable C++ EH @@ -283,7 +285,7 @@ def generate(env): '/GF', # enable read-only string pooling ] # Put debugging information in a separate .pdb file for each object file as - # descrived in the scons manpage + # described in the scons manpage env['CCPDBFLAGS'] = '/Zi /Fd${TARGET}.pdb' env.Append(CFLAGS = cflags) env.Append(CXXFLAGS = cflags) |