Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nanopb/nanopb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2018-10-11 11:15:22 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2018-10-11 11:15:22 +0300
commit302792f207486a15a745ed74c6809c71902c97c1 (patch)
tree10e0df4001f6b22daa0af9edbda34d6a14c814e8
parentfb6570b3ce4fc4c9e0e3a1e746c4e004242a1f9b (diff)
Fix test failure on Windows
-rw-r--r--tests/SConstruct6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/SConstruct b/tests/SConstruct
index 06e4dba..dc43966 100644
--- a/tests/SConstruct
+++ b/tests/SConstruct
@@ -149,6 +149,12 @@ elif 'g++' in env['CXX'] or 'gcc' in env['CXX']:
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')
+
# Now include the SConscript files from all subdirectories
import os.path
env['VARIANT_DIR'] = 'build'