Travis CI: Workaround 'unused function' cppcheck false warnings in extra
authorIvan Maidanski <ivmai@mail.ru>
Wed, 3 May 2017 07:35:59 +0000 (10:35 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 3 May 2017 07:35:59 +0000 (10:35 +0300)
(fix commit b89b137)

.travis.yml

index f957111..15e80f0 100644 (file)
@@ -160,7 +160,7 @@ matrix:
         - CFLAGS_EXTRA="-D ALL_INTERIOR_POINTERS -D CHECKSUMS -D DBG_HDRS_ALL -D DEBUG_THREADS -D ENABLE_TRACE -D GC_ALWAYS_MULTITHREADED -D GC_ASSERTIONS -D GC_ATOMIC_UNCOLLECTABLE -D GC_ENABLE_SUSPEND_THREAD -D GC_GCJ_SUPPORT -D GC_PRINT_BACK_HEIGHT -D GC_THREADS -D HANDLE_FORK -D JAVA_FINALIZATION -D KEEP_BACK_PTRS -D MAKE_BACK_GRAPH -D PARALLEL_MARK -D PRINT_BLACK_LIST -D THREAD_LOCAL_ALLOC -D USE_MMAP -D USE_MUNMAP"
     - os: linux
       env:
-        - CPPCHECK_ENABLE="-j16 --enable=information,performance,portability,style,warning"
+        - CPPCHECK_ENABLE="-j16 --enable=information,performance,portability,style,warning extra/AmigaOS.c extra/MacOS.c extra/msvc_dbg.c extra/symbian.cpp"
       sudo: required
     - os: linux
       env: [ CPPCHECK_ENABLE="--enable=unusedFunction" ]
@@ -336,8 +336,8 @@ script:
   - if [[ "$CPPCHECK_ENABLE" != "" ]]; then
       ~/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;
+                *.cc cord/*.c cord/tests/*.c tests/*.c tests/*.cc tools/*.c
+                extra/gc.c;
     fi
   - if [[ "$MSAN_OR_UBSAN" == true ]]; then
       UBSAN_OPTIONS="halt_on_error=1" make check-without-test-driver;