summaryrefslogtreecommitdiffstats
path: root/tests/SConstruct
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-09-11 13:16:20 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-09-11 13:16:20 +0300
commitb9f14bddf778a5ed27e3289b90a0657fec3e1a53 (patch)
tree972d67e547f1816d3dbe0643ea8add734ef8e90e /tests/SConstruct
parente2e9980627810fe0ee2b8f119bcf651f0f318a8a (diff)
Make all the tests ANSI C compatible.
Diffstat (limited to 'tests/SConstruct')
-rw-r--r--tests/SConstruct10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/SConstruct b/tests/SConstruct
index 92cb0c6..26a513d 100644
--- a/tests/SConstruct
+++ b/tests/SConstruct
@@ -70,15 +70,15 @@ if 'gcc' in env['CC']:
# GNU Compiler Collection
# Debug info, warnings as errors
- env.Append(CFLAGS = '-ansi -g -O0 -Wall -Werror --coverage -fstack-protector-all')
+ env.Append(CFLAGS = '-ansi -pedantic -g -O0 -Wall -Werror --coverage -fstack-protector-all')
env.Append(LINKFLAGS = '--coverage')
# More strict checks on the nanopb core
- env.Append(CORECFLAGS = '-pedantic -Wextra -Wcast-qual -Wlogical-op -Wconversion')
+ env.Append(CORECFLAGS = '-Wextra -Wcast-qual -Wlogical-op -Wconversion')
elif 'clang' in env['CC']:
# CLang
- env.Append(CFLAGS = '-ansi -g -O0 -Wall -Werror')
- env.Append(CORECFLAGS = '-pedantic -Wextra -Wcast-qual -Wconversion')
+ env.Append(CFLAGS = '-ansi -pedantic -g -O0 -Wall -Werror')
+ env.Append(CORECFLAGS = ' -Wextra -Wcast-qual -Wconversion')
elif 'cl' in env['CC']:
# Microsoft Visual C++
@@ -87,7 +87,7 @@ elif 'cl' in env['CC']:
env.Append(LINKFLAGS = '/DEBUG')
# More strict checks on the nanopb core
- env.Append(CORECFLAGS = '/W4 /Za')
+ env.Append(CORECFLAGS = '/W4')
# PB_RETURN_ERROR triggers C4127 because of while(0)
env.Append(CFLAGS = '/wd4127')