Skip to content

Commit fe98ce4

Browse files
committedJan 30, 2020
Cosmetics: address cppcheck warnings
1 parent 68ef2de commit fe98ce4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+354
-275
lines changed
 

‎Makefile.am

+11-9
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,17 @@ parser:
5656

5757

5858
cppcheck:
59-
@cppcheck -U YYSTYPE \
60-
--suppressions-list=./test/cppcheck_suppressions.txt \
61-
--enable=all \
62-
--inconclusive \
63-
--template="warning: {file},{line},{severity},{id},{message}" \
64-
-I headers -I . -I others -I src -I others/mbedtls -I src/parser \
65-
--error-exitcode=0 \
66-
-i "src/parser/seclang-parser.cc" -i "src/parser/seclang-scanner.cc" \
67-
.
59+
@cppcheck -U YYSTYPE -U MBEDTLS_MD5_ALT -U MBEDTLS_SHA1_ALT \
60+
-D MS_CPPCHECK_DISABLED_FOR_PARSER \
61+
--suppressions-list=./test/cppcheck_suppressions.txt \
62+
--enable=all \
63+
--inconclusive \
64+
--template="warning: {file},{line},{severity},{id},{message}" \
65+
-I headers -I . -I others -I src -I others/mbedtls -I src/parser \
66+
--error-exitcode=1 \
67+
-i "src/parser/seclang-parser.cc" -i "src/parser/seclang-scanner.cc" \
68+
--force --verbose .
69+
6870

6971
check-static: cppcheck
7072

‎build/lua.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ AC_DEFUN([CHECK_LUA],
66
[dnl
77
88
# Possible names for the lua library/package (pkg-config)
9-
LUA_POSSIBLE_LIB_NAMES="luajit luajit-5.1 lua53 lua5.3 lua-5.3 lua52 lua5.2 lua-5.2 lua51 lua5.1 lua-5.1 lua"
9+
LUA_POSSIBLE_LIB_NAMES="lua53 lua5.3 lua-5.3 lua52 lua5.2 lua-5.2 lua51 lua5.1 lua-5.1 lua"
1010
1111
# Possible extensions for the library
1212
LUA_POSSIBLE_EXTENSIONS="so so0 la sl dll dylib so.0.0.0"

0 commit comments

Comments
 (0)