Organize allocation logic in generator, add pb_bytes_ptr_t.
[apps/agl-service-can-low-level.git] / tests / common / SConscript
index ef3cdca..8130c85 100644 (file)
@@ -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")