2025-04-12 20:59 ftp://ftp.de.debian.org/debian/pool/main/t/tolua++/tolua++_1.0.93.orig.tar.bz2 cppcheck-options: --library=posix --library=gnu --library=bsd --library=lua --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-32-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.64 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.17.0 head-info: 4e769db (2025-04-12 19:34:53 +0200) count: 50 50 elapsed-time: 219.8 93.1 head-timing-info: old-timing-info: head results: tolua++-1.0.93/src/bin/tolua.c:28:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tolua++-1.0.93/src/bin/tolua.c:57:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tolua++-1.0.93/src/bin/tolua.c:78:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tolua++-1.0.93/src/bin/tolua.c:98:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TOLUA_VERSION [valueFlowBailoutIncompleteVar] tolua++-1.0.93/src/bin/tolua.c:60:54: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] tolua++-1.0.93/src/bin/tolua.c:60:63: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] tolua++-1.0.93/src/bin/tolua.c:67:44: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] tolua++-1.0.93/src/bin/tolua.c:76:26: style: Parameter 'o' can be declared as pointer to const [constParameterPointer] tolua++-1.0.93/src/lib/tolua_event.c:39:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua++-1.0.93/src/lib/tolua_event.c:140:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TUSERDATA [valueFlowBailoutIncompleteVar] tolua++-1.0.93/src/lib/tolua_event.c:245:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TUSERDATA [valueFlowBailoutIncompleteVar] tolua++-1.0.93/src/lib/tolua_event.c:448:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tolua_default_collect [valueFlowBailoutIncompleteVar] tolua++-1.0.93/src/lib/tolua_event.c:532:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua++-1.0.93/src/lib/tolua_is.c:34:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua++-1.0.93/src/lib/tolua_is.c:51:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TNONE [valueFlowBailoutIncompleteVar] tolua++-1.0.93/src/lib/tolua_is.c:124:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua++-1.0.93/src/lib/tolua_is.c:177:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua++-1.0.93/src/lib/tolua_map.c:53:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua++-1.0.93/src/lib/tolua_map.c:192:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua++-1.0.93/src/lib/tolua_map.c:289:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua++-1.0.93/src/lib/tolua_map.c:373:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua++-1.0.93/src/lib/tolua_map.c:414:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_GLOBALSINDEX [valueFlowBailoutIncompleteVar] tolua++-1.0.93/src/lib/tolua_map.c:448:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_GLOBALSINDEX [valueFlowBailoutIncompleteVar] tolua++-1.0.93/src/lib/tolua_is.c:88:73: style: Parameter 'err' can be declared as pointer to const [constParameterPointer] tolua++-1.0.93/src/lib/tolua_map.c:347:49: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] tolua++-1.0.93/src/lib/tolua_push.c:63:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] tolua++-1.0.93/src/tests/tclass.h:18:2: warning: Member variable 'Tst_A::number' is not initialized in the constructor. [uninitMemberVar] tolua++-1.0.93/src/tests/tclass.h:101:2: warning: Member variable 'Tst_E::ptr' is not initialized in the constructor. [uninitMemberVar] tolua++-1.0.93/src/tests/tclass.h:101:2: warning: Member variable 'Tst_E::pete' is not initialized in the constructor. [uninitMemberVar] tolua++-1.0.93/src/tests/tclass.h:36:6: style:inconclusive: Technically the member function 'Test::Tst_A::get_number' can be const. [functionConst] tolua++-1.0.93/src/tests/tclass.h:25:9: performance:inconclusive: Technically the member function 'Test::Tst_A::Tst_AA::aa' can be static (but you may consider moving to unnamed namespace). [functionStatic] tolua++-1.0.93/src/tests/tclass.h:83:7: performance:inconclusive: Technically the member function 'Test::Tst_E::get_pete' can be static (but you may consider moving to unnamed namespace). [functionStatic] tolua++-1.0.93/src/tests/tclass.h:90:7: performance:inconclusive: Technically the member function 'Test::Tst_E::pars' can be static (but you may consider moving to unnamed namespace). [functionStatic] tolua++-1.0.93/src/tests/tclass.h:91:7: performance:inconclusive: Technically the member function 'Test::Tst_E::get_pointer' can be static (but you may consider moving to unnamed namespace). [functionStatic] tolua++-1.0.93/src/tests/tclass.h:44:16: warning: The class 'Tst_B' defines member variable with name 'last' also defined in its parent class 'Tst_A'. [duplInheritedMember] tolua++-1.0.93/src/tests/tclass.h:17:16: note: Parent variable 'Tst_A::last' tolua++-1.0.93/src/tests/tclass.h:44:16: note: Derived variable 'Tst_B::last' tolua++-1.0.93/src/tests/tclass.h:58:16: warning: The class 'Tst_C' defines member variable with name 'last' also defined in its parent class 'Tst_B'. [duplInheritedMember] tolua++-1.0.93/src/tests/tclass.h:44:16: note: Parent variable 'Tst_B::last' tolua++-1.0.93/src/tests/tclass.h:58:16: note: Derived variable 'Tst_C::last' tolua++-1.0.93/src/tests/tclass.h:58:16: warning: The class 'Tst_C' defines member variable with name 'last' also defined in its parent class 'Tst_A'. [duplInheritedMember] tolua++-1.0.93/src/tests/tclass.h:17:16: note: Parent variable 'Tst_A::last' tolua++-1.0.93/src/tests/tclass.h:58:16: note: Derived variable 'Tst_C::last' tolua++-1.0.93/src/tests/tclass.h:59:2: style: Class 'Tst_C' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tolua++-1.0.93/src/tests/tclass.h:101:2: style: Class 'Tst_E' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] tolua++-1.0.93/src/tests/tclass.h:51:11: style: The destructor '~Tst_B' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] tolua++-1.0.93/src/tests/tclass.h:38:11: note: Virtual destructor in base class tolua++-1.0.93/src/tests/tclass.h:51:11: note: Destructor in derived class tolua++-1.0.93/src/tests/tclass.h:60:11: style: The destructor '~Tst_C' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] tolua++-1.0.93/src/tests/tclass.h:51:11: note: Virtual destructor in base class tolua++-1.0.93/src/tests/tclass.h:60:11: note: Destructor in derived class tolua++-1.0.93/src/tests/tclass.h:86:15: style: Local variable 'a' shadows outer variable [shadowVariable] tolua++-1.0.93/src/tests/tclass.h:93:8: note: Shadowed declaration tolua++-1.0.93/src/tests/tclass.h:86:15: note: Shadow variable tolua++-1.0.93/src/tests/tclass.h:69:39: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] tolua++-1.0.93/src/tests/tclass.h:91:25: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] tolua++-1.0.93/src/tests/tclass.h:114:45: style: Parameter 'p_out' can be declared as pointer to const [constParameterPointer] tolua++-1.0.93/src/tests/tclass.h:114:63: style: Parameter 'ls' can be declared as pointer to const [constParameterPointer] tolua++-1.0.93/src/tests/tdirectivebind.c:31:41: style: Parameter 'tolua_S' can be declared as pointer to const [constParameterPointer] tolua++-1.0.93/src/tests/tmodulebind.c:19:41: style: Parameter 'tolua_S' can be declared as pointer to const [constParameterPointer] tolua++-1.0.93/src/bin/toluabind_default.c:18:41: style: Parameter 'tolua_S' can be declared as pointer to const [constParameterPointer] tolua++-1.0.93/src/bin/toluabind.c:18:41: style: Parameter 'tolua_S' can be declared as pointer to const [constParameterPointer] diff: DONE