diff --git a/README.md b/README.md index 802fb4fa1..28b998b30 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ $ make valgrind * Use `$ make clean` or `$ rm /tmp/qtest.*` to clean the temporary files created by target valgrind Extra options can be recognized by make: -* `VERBOSE`: control the build verbosity. If `VERBOSE=1`, echo eacho command in build process. +* `VERBOSE`: control the build verbosity. If `VERBOSE=1`, echo each command in build process. * `SANITIZER`: enable sanitizer(s) directed build. At the moment, AddressSanitizer is supported. ## Using `qtest` diff --git a/queue.c b/queue.c index 5841cb6fb..c237e646e 100644 --- a/queue.c +++ b/queue.c @@ -21,7 +21,7 @@ struct list_head *q_new() } /* Free all storage used by queue */ -void q_free(struct list_head *l) {} +void q_free(struct list_head *head) {} /* Insert an element at head of queue */ bool q_insert_head(struct list_head *head, char *s) diff --git a/scripts/pre-commit.hook b/scripts/pre-commit.hook index b39b87bdf..f8467cc75 100755 --- a/scripts/pre-commit.hook +++ b/scripts/pre-commit.hook @@ -16,7 +16,8 @@ CPPCHECK_suppresses="--inline-suppr harness.c \ --suppress=nullPointer:qtest.c \ --suppress=returnDanglingLifetime:report.c \ --suppress=constParameterCallback:console.c \ ---suppress=constParameterPointer:console.c" +--suppress=constParameterPointer:console.c \ +--suppress=checkLevelNormal:log2_lshift16.h" CPPCHECK_OPTS="-I. --enable=all --error-exitcode=1 --force $CPPCHECK_suppresses $CPPCHECK_unmatched ." RETURN=0