From cea40fc3356036da016239d7668c1db993cc175a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 17 Sep 2014 12:17:54 -0400 Subject: [PATCH] Code is cppcheck clean. --- Makefile | 14 ++++++++++++++ README | 2 ++ 2 files changed, 16 insertions(+) diff --git a/Makefile b/Makefile index e5be1b1..080cc42 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ # Makefile for the microjson project: +VERSION=0.1 + CFLAGS = -O # Add DEBUG_ENABLE for the tracing code @@ -16,3 +18,15 @@ check: test_microjson clean: rm -f microjson.o test_json +CSUPPRESSIONS = -U__UNUSED__ +cppcheck: + cppcheck -I. --template gcc --enable=all --suppress=unusedStructMember $(CSUPPRESSIONS) *.[ch] + +SOURCES = Makefile *.[ch] +DOCS = README COPYING +ALL = $(SOURCES) $(DOCS) +microjson-$(VERSION).tar.gz: $(ALL) + tar --transform='s:^:microjson-$(VERSION)/:' --show-transformed-names -cvzf microjson-$(VERSION).tar.gz $(ALL) + +dist: microjson-$(VERSION).tar.gz + diff --git a/README b/README index 2baa484..815d459 100644 --- a/README +++ b/README @@ -8,6 +8,8 @@ constrained embedded environments. It may also be of interest for code where malloc is verboten to reduce reliability and sexurity vulnerabilities. +BSD license terms apply; see the file COPYING. + Eric S. Raymond Ocrober 2014 -- 2.43.0