diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2018-10-11 11:51:45 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2018-10-11 11:51:45 +0300 |
commit | aee518b2b23922c52dfc9d6cd05eef31ed4af88a (patch) | |
tree | ac54f5092d12dc85d6412947805e1b677fece914 /tests | |
parent | 302792f207486a15a745ed74c6809c71902c97c1 (diff) |
Further test fail fix for Windows
Diffstat (limited to 'tests')
-rw-r--r-- | tests/SConstruct | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/SConstruct b/tests/SConstruct index dc43966..d2dfeec 100644 --- a/tests/SConstruct +++ b/tests/SConstruct @@ -136,6 +136,12 @@ elif 'cl' in env['CC']: # More strict checks on the nanopb core env.Append(CORECFLAGS = '/W4') + + # Disable warning about sizeof(union{}) construct that is used in + # message size macros, in e.g. multiple_files testcase. The C construct + # itself is valid, but quite rare, which causes Visual C++ to give a warning + # about it. + env.Append(CFLAGS = '/wd4116') elif 'tcc' in env['CC']: # Tiny C Compiler env.Append(CFLAGS = '-Wall -Werror -g') @@ -147,13 +153,7 @@ if 'clang' in env['CXX']: elif 'g++' in env['CXX'] or 'gcc' in env['CXX']: env.Append(CXXFLAGS = '-g -Wall -Werror -Wextra -Wno-missing-field-initializers') elif 'cl' in env['CXX']: - env.Append(CXXFLAGS = '/Zi /W2 /WX') - - # Disable warning about sizeof(union{}) construct that is used in - # message size macros, in e.g. multiple_files testcase. The C construct - # itself is valid, but quite rare, which causes Visual C++ to give a warning - # about it. - env.Append(CXXFLAGS = '/wd4116') + env.Append(CXXFLAGS = '/Zi /W2 /WX /wd4116') # Now include the SConscript files from all subdirectories import os.path |