Travis CI: Workaround 'value of GC_API unknown' cppcheck warnings
authorIvan Maidanski <ivmai@mail.ru>
Tue, 2 May 2017 20:40:50 +0000 (23:40 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 2 May 2017 20:40:50 +0000 (23:40 +0300)
(fix commit b89b137)

Also, turn on silent mode for cppcheck.

.travis.yml

index ce1e198..f957111 100644 (file)
@@ -334,8 +334,8 @@ script:
             extra/msvc_dbg.c tests/*.c tests/*.cc tools/*.c;
     fi
   - if [[ "$CPPCHECK_ENABLE" != "" ]]; then
-      ~/cppcheck/cppcheck -f --error-exitcode=2 -U long -D CPPCHECK
-                -I include -I libatomic_ops/src $CPPCHECK_ENABLE
+      ~/cppcheck/cppcheck -q -f --error-exitcode=2 -U GC_API -U long
+                -D CPPCHECK -I include -I libatomic_ops/src $CPPCHECK_ENABLE
                 *.cc cord/*.c cord/tests/*.c extra/*.c extra/*.cpp
                 tests/*.c tests/*.cc tools/*.c;
     fi