From: Petteri Aimonen Date: Sun, 15 Nov 2015 07:26:10 +0000 (+0200) Subject: Second fix for -pedantic build issue in tests X-Git-Tag: 5.0.2~186^2~95 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=990b7223ebfae4161ba4bf7ef81094f2317a665b;p=apps%2Fagl-service-can-low-level.git Second fix for -pedantic build issue in tests --- diff --git a/tests/anonymous_oneof/SConscript b/tests/anonymous_oneof/SConscript index 051c772f..10672287 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',