Fix cppcheck warnings
This commit is contained in:
parent
0dab950ebf
commit
7f4ef8d8fd
@ -34,7 +34,7 @@ compilers:
|
|||||||
cmake_extra_flags: -DBUILD_SAMPLES:BOOL=ON -DBUILD_PACKAGE:BOOL=ON -DBUILD_TESTING:BOOL=ON -DRUN_PERFORMANCE_TESTS:BOOL=ON
|
cmake_extra_flags: -DBUILD_SAMPLES:BOOL=ON -DBUILD_PACKAGE:BOOL=ON -DBUILD_TESTING:BOOL=ON -DRUN_PERFORMANCE_TESTS:BOOL=ON
|
||||||
collect_performance_results: true
|
collect_performance_results: true
|
||||||
- name: cppcheck
|
- name: cppcheck
|
||||||
compiler_extra_flags: --enable=all -I include --inline-suppr -Umax --suppress="*:cmake*" --suppress="*:unittests/catch.hpp" --force
|
compiler_extra_flags: --enable=all -I include --inline-suppr -Umax --suppress="*:unittests/catch.hpp" --force --suppress="unusedFunction:*"
|
||||||
- name: custom_check
|
- name: custom_check
|
||||||
commands:
|
commands:
|
||||||
- ./contrib/check_for_tabs.rb
|
- ./contrib/check_for_tabs.rb
|
||||||
|
@ -7,6 +7,9 @@ int main( int /*argc*/ , char * /*argv*/[] )
|
|||||||
{
|
{
|
||||||
chaiscript::ChaiScript ch( chaiscript::Std_Lib::library( ) );
|
chaiscript::ChaiScript ch( chaiscript::Std_Lib::library( ) );
|
||||||
|
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
static const char script[ ] =
|
static const char script[ ] =
|
||||||
R""(
|
R""(
|
||||||
|
|
||||||
@ -19,8 +22,7 @@ int main( int /*argc*/ , char * /*argv*/[] )
|
|||||||
|
|
||||||
)"";
|
)"";
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
ch.eval( script );
|
ch.eval( script );
|
||||||
}
|
}
|
||||||
catch ( const std::exception &e )
|
catch ( const std::exception &e )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user