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
path: root/tests
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2015-11-15 10:26:10 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2015-11-15 10:26:10 +0300
commit990b7223ebfae4161ba4bf7ef81094f2317a665b (patch)
tree7638f543d59b8d321f2b3ed8880e36243494cbab /tests
parentc201f368c592508e8f2289c3f0f19e681db153a3 (diff)
Second fix for -pedantic build issue in tests
Diffstat (limited to 'tests')
-rw-r--r--tests/anonymous_oneof/SConscript3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/anonymous_oneof/SConscript b/tests/anonymous_oneof/SConscript
index 051c772..1067228 100644
--- a/tests/anonymous_oneof/SConscript
+++ b/tests/anonymous_oneof/SConscript
@@ -16,7 +16,8 @@ if env.GetOption('clean') or (match and (version[0] > 2 or (version[0] == 2 and
# Anonymous oneofs are supported by clang and gcc
if 'clang' in env['CC'] or 'gcc' in env['CC']:
env2 = env.Clone()
- env2['CFLAGS'].remove('-pedantic')
+ if '-pedantic' in env2['CFLAGS']:
+ env2['CFLAGS'].remove('-pedantic')
env2.NanopbProto('oneof')
dec = env2.Program(['decode_oneof.c',