From f187aad63db2ff8e1a82508f4a43988b43e10f54 Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Sun, 2 Sep 2012 19:54:35 +0300 Subject: Fix -Wextra warning in generated .pb.c files. Compile the generated files with the same extra-strict settings as the core, in order to detect problems in tests. Update issue 32 Status: FixedInGit --- tests/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/Makefile b/tests/Makefile index 3810c95f..e4c67c59 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -11,6 +11,9 @@ all: breakpoints $(TESTS) run_unittests clean: rm -f $(TESTS) person.pb* alltypes.pb* *.o *.gcda *.gcno +%.pb.o: %.pb.c %.pb.h + $(CC) $(CFLAGS) $(CFLAGS_CORE) -c -o $@ $< + %.o: %.c %.o: %.c $(DEPS) $(CC) $(CFLAGS) -c -o $@ $< -- cgit 1.2.3-korg