From ead3b734d8f96837ea6564b694df5618134e3cf8 Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Wed, 27 Jul 2011 19:57:43 +0000 Subject: Making code ansi-compatible git-svn-id: https://svn.kapsi.fi/jpa/nanopb@944 e3a754e5-d11d-0410-8d38-ebb782a927b9 --- tests/Makefile | 11 +++++++++++ tests/test_decode1.c | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 tests/Makefile (limited to 'tests') diff --git a/tests/Makefile b/tests/Makefile new file mode 100644 index 00000000..da4030e2 --- /dev/null +++ b/tests/Makefile @@ -0,0 +1,11 @@ +CFLAGS=-ansi -pedantic -Wall -I .. -g -O0 +DEPS=../pb_decode.c ../pb_decode.h ../pb.h + +all: test_decode1 + +clean: + rm -f test_decode1 + +test_decode1: test_decode1.c $(DEPS) + $(CC) $(CFLAGS) -o $@ $< ../pb_decode.c + diff --git a/tests/test_decode1.c b/tests/test_decode1.c index fbdb7db6..20ea65e4 100644 --- a/tests/test_decode1.c +++ b/tests/test_decode1.c @@ -8,7 +8,7 @@ typedef enum { Person_PhoneType_MOBILE = 0, Person_PhoneType_HOME = 1, - Person_PhoneType_WORK = 2, + Person_PhoneType_WORK = 2 } Person_PhoneType; typedef struct { -- cgit 1.2.3-korg