From: Eric S. Raymond Date: Wed, 17 Sep 2014 16:17:54 +0000 (-0400) Subject: Code is cppcheck clean. X-Git-Tag: 1.0~28 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=cea40fc3356036da016239d7668c1db993cc175a;p=microjson.git Code is cppcheck clean. --- 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