]> thyrsus.com Git - microjson.git/commitdiff
Documentation and cppcheck cleanup.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 26 Sep 2014 15:40:52 +0000 (11:40 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 26 Sep 2014 15:40:52 +0000 (11:40 -0400)
Makefile
microjson.asc
test_microjson.c

index 2b67e5d960ac3d0dbc51c3b290de34fa3e6682d1..7ee64369be0f95701a67df49ccfee0f965cf5f77 100644 (file)
--- 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
index 5fc9b1228d819624e22b6ce9473153a8ea63d0ea..d94dc193b7d8695314778448db898641efe945c6 100644 (file)
@@ -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 ===
 
index 042f14ed8b057582dffc7a0d8e9ee8a37b9512f7..b81b79754ab4047733a4fc104a3af0767f1e3f5f 100644 (file)
@@ -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[])