From 3b4c76f7ba4f27fbdd13414b0ad0a435cfdfb631 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 3 May 2017 10:35:59 +0300 Subject: [PATCH] Travis CI: Workaround 'unused function' cppcheck false warnings in extra (fix commit b89b137) --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index f9571113..15e80f04 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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; -- 2.40.0