From 1a37343e8be960a1705d33d281f5ea32ad013a7a Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Fri, 24 Apr 2015 06:50:34 -0600 Subject: [PATCH] Check more compiler/analyzer warnings --- .decent_ci-Linux.yaml | 2 +- unittests/compiled_tests.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.decent_ci-Linux.yaml b/.decent_ci-Linux.yaml index 2056efab..931e699c 100644 --- a/.decent_ci-Linux.yaml +++ b/.decent_ci-Linux.yaml @@ -26,5 +26,5 @@ compilers: skip_packaging: true cmake_extra_flags: -DBUILD_SAMPLES:BOOL=ON -DBUILD_PACKAGE:BOOL=ON -DBUILD_TESTING:BOOL=ON - name: cppcheck - compiler_extra_flags: --enable=all -I include --inline-suppr -Umax --suppress="*:cmake*" + compiler_extra_flags: --enable=all -I include --inline-suppr -Umax --suppress="*:cmake*" --suppress="*:catch.hpp" --force diff --git a/unittests/compiled_tests.cpp b/unittests/compiled_tests.cpp index df23c2f1..d1969564 100644 --- a/unittests/compiled_tests.cpp +++ b/unittests/compiled_tests.cpp @@ -5,12 +5,13 @@ #ifdef CHAISCRIPT_MSVC #pragma warning(push) -#pragma warning(disable : 4190 4640 28251) +#pragma warning(disable : 4190 4640 28251 4702) #endif #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wshadow" +#pragma GCC diagnostic ignored "-Wold-style-cast" #endif #ifdef __llvm__