aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2018-06-05 00:24:30 +0200
committerAnders Broman <a.broman58@gmail.com>2018-06-06 05:20:43 +0000
commit16cd9811516e232efa48d5ca57a63d3b0bfc1126 (patch)
tree800aade6620bf6b816084fbd455e7b81e9a7e146
parentfc4de96fe75798af84e47018ad808bdd913bfec0 (diff)
Tweak cppcheck to test with better settings
c99 is probably a better standard to check against. Also try to cut down on ASN.1 template and config file testing, since these fail anyway, not being full source files yet. Change-Id: I289c35498cf9eba757e46601b4610f085ec4ba77 Signed-off-by: Jaap Keuter <jaap.keuter@xs4all.nl> Reviewed-on: https://code.wireshark.org/review/28019 Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rwxr-xr-xtools/cppcheck/cppcheck.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/cppcheck/cppcheck.sh b/tools/cppcheck/cppcheck.sh
index ca4ac6b290..c6a481cdf9 100755
--- a/tools/cppcheck/cppcheck.sh
+++ b/tools/cppcheck/cppcheck.sh
@@ -80,9 +80,9 @@ fi
# runs and we aren't left with broken HTML.
trap : INT
-$CPPCHECK --force --enable=style $QUIET \
- $SUPPRESSIONS $INCLUDES \
- --std=c89 --template=$TEMPLATE \
+$CPPCHECK --force --enable=style $QUIET \
+ $SUPPRESSIONS $INCLUDES -i asn1/ \
+ --std=c99 --template=$TEMPLATE \
-j $THREADS $TARGET 2>&1 | colorize
if [ "$MODE" = "html" ]; then