aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@npb.mail.kapsi.fi>2011-07-27 19:57:43 +0000
committerPetteri Aimonen <jpa@npb.mail.kapsi.fi>2011-07-27 19:57:43 +0000
commitead3b734d8f96837ea6564b694df5618134e3cf8 (patch)
treecbd466e8882650275fd992cf8183cb05ccba6d2f /tests
parent84304b343a4b06a7918bc80ab45f08d1cae0b9cb (diff)
Making code ansi-compatible
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@944 e3a754e5-d11d-0410-8d38-ebb782a927b9
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile11
-rw-r--r--tests/test_decode1.c2
2 files changed, 12 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile
new file mode 100644
index 0000000..da4030e
--- /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 fbdb7db..20ea65e 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 {