Check more compiler/analyzer warnings

This commit is contained in:
Jason Turner
2015-04-24 06:50:34 -06:00
parent ddc6ac8e00
commit 1a37343e8b
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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__