From: Eric S. Raymond Date: Fri, 26 Sep 2014 15:40:52 +0000 (-0400) Subject: Documentation and cppcheck cleanup. X-Git-Tag: 1.1~1 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=c9535b166fefa227b1350d92b17262cabff51e39;p=microjson.git Documentation and cppcheck cleanup. --- diff --git a/Makefile b/Makefile index 2b67e5d..7ee6436 100644 --- a/Makefile +++ b/Makefile @@ -34,9 +34,10 @@ clean: rm -f microjson.o test_microjson.o test_microjson example[123] rm -f microjson.html -CSUPPRESSIONS = -U__UNUSED__ +SUPPRESSIONS = --suppress=unusedStructMember +SUPPRESSIONS += -U__UNUSED__ cppcheck: - cppcheck -I. --template gcc --enable=all --suppress=unusedStructMember $(CSUPPRESSIONS) *.[ch] + cppcheck -I. --template gcc --enable=all $() $(SUPPRESSIONS) *.[ch] SOURCES = Makefile *.[ch] DOCS = README COPYING NEWS control microjson.asc diff --git a/microjson.asc b/microjson.asc index 5fc9b12..d94dc19 100644 --- a/microjson.asc +++ b/microjson.asc @@ -175,7 +175,7 @@ The following cases do not parse JSON value atoms: ==== Skip fields ==== t_ignore: Value of this attribute is ignored. Significant because -unexpected attribute names cause the parse to terminate with error +unexpected attribute names cause the parse to terminate with error. ==== Parallel arrays === diff --git a/test_microjson.c b/test_microjson.c index 042f14e..b81b797 100644 --- a/test_microjson.c +++ b/test_microjson.c @@ -776,6 +776,9 @@ static void jsontest(int i) (int)fputs("Unknown test number\n", stderr); break; } + + if (status > 0) + printf("Parse failure!\n"); } int main(int argc, char *argv[])