summaryrefslogtreecommitdiffstats
path: root/tests/common
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-09-10 20:54:29 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-09-10 20:54:29 +0300
commit0bbcb7b367998063637ee35c5d13716492cbf6a3 (patch)
tree52783aea354830940ce94fdf2075d04fc39bc06a /tests/common
parent696a01bf140e91661eae77663de99c78c95dcc73 (diff)
Compiler options for GCC, clang and tcc
Diffstat (limited to 'tests/common')
-rw-r--r--tests/common/SConscript7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/common/SConscript b/tests/common/SConscript
index ef3cdcaa..8130c85a 100644
--- a/tests/common/SConscript
+++ b/tests/common/SConscript
@@ -9,6 +9,9 @@ env.NanopbProto("unittestproto")
env.NanopbProto("person")
# Binaries of the pb_decode.c and pb_encode.c
-env.Object("pb_decode.o", "#../pb_decode.c")
-env.Object("pb_encode.o", "#../pb_encode.c")
+# These are built using more strict warning flags.
+strict = env.Clone()
+strict.Append(CFLAGS = strict['CORECFLAGS'])
+strict.Object("pb_decode.o", "#../pb_decode.c")
+strict.Object("pb_encode.o", "#../pb_encode.c")