2024-04-25 09:26 ftp://ftp.de.debian.org/debian/pool/main/k/kbreakout/kbreakout_22.12.3.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=qt --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j1 platform: Linux-5.15.0-105-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.56 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.14.0 head-info: da380ea (2024-04-25 10:28:43 +0200) count: 30 30 elapsed-time: 0.6 0.5 head-timing-info: old-timing-info: head results: kbreakout-22.12.3/src/canvaswidget.cpp:35:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SizeRootObjectToView [valueFlowBailoutIncompleteVar] kbreakout-22.12.3/src/canvaswidget.cpp:66:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NativeText [valueFlowBailoutIncompleteVar] kbreakout-22.12.3/src/canvaswidget.cpp:78:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Leave [valueFlowBailoutIncompleteVar] kbreakout-22.12.3/src/canvaswidget.cpp:142:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BlankCursor [valueFlowBailoutIncompleteVar] kbreakout-22.12.3/src/gameengine.cpp:30:39: style:inconclusive: Function 'start' argument 1 names different: declaration 'levelset' definition 'l'. [funcArgNamesDifferent] kbreakout-22.12.3/src/gameengine.h:23:31: note: Function 'start' argument 1 names different: declaration 'levelset' definition 'l'. kbreakout-22.12.3/src/gameengine.cpp:30:39: note: Function 'start' argument 1 names different: declaration 'levelset' definition 'l'. kbreakout-22.12.3/src/levelloader.cpp:58:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AppDataLocation [valueFlowBailoutIncompleteVar] kbreakout-22.12.3/src/levelloader.cpp:103:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KBREAKOUT_General [valueFlowBailoutIncompleteVar] kbreakout-22.12.3/src/levelloader.cpp:183:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KBREAKOUT_General [valueFlowBailoutIncompleteVar] kbreakout-22.12.3/src/levelloader.cpp:250:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AppDataLocation [valueFlowBailoutIncompleteVar] kbreakout-22.12.3/src/levelloader.cpp:21:14: warning: Member variable 'LevelLoader::m_oldstyle' is not initialized in the constructor. [uninitMemberVar] kbreakout-22.12.3/src/levelloader.cpp:21:14: warning: Member variable 'LevelLoader::m_lineNumber' is not initialized in the constructor. [uninitMemberVar] kbreakout-22.12.3/src/levelloader.h:25:13: performance: Function 'levelset()' should return member 'm_levelname' by const reference. [returnByReference] kbreakout-22.12.3/src/levelloader.cpp:121:17: style: Local variable 'level' shadows outer function [shadowFunction] kbreakout-22.12.3/src/levelloader.h:23:9: note: Shadowed declaration kbreakout-22.12.3/src/levelloader.cpp:121:17: note: Shadow variable kbreakout-22.12.3/src/levelloader.cpp:233:26: style: Variable 'nodeTextRead' is assigned a value that is never used. [unreadVariable] kbreakout-22.12.3/src/levelloader.cpp:236:26: style: Variable 'nodeTextRead' is assigned a value that is never used. [unreadVariable] kbreakout-22.12.3/src/main.cpp:38:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KBREAKOUT_VERSION_STRING [valueFlowBailoutIncompleteVar] kbreakout-22.12.3/src/mainwindow.cpp:75:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Keys [valueFlowBailoutIncompleteVar] kbreakout-22.12.3/src/mainwindow.cpp:112:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Key_Space [valueFlowBailoutIncompleteVar] kbreakout-22.12.3/src/mainwindow.cpp:169:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Name [valueFlowBailoutIncompleteVar] kbreakout-22.12.3/src/mainwindow.cpp:191:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Yes [valueFlowBailoutIncompleteVar] kbreakout-22.12.3/src/mainwindow.cpp:201:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Trigger [valueFlowBailoutIncompleteVar] kbreakout-22.12.3/src/mainwindow.cpp:220:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Score [valueFlowBailoutIncompleteVar] kbreakout-22.12.3/src/mainwindow.cpp:243:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Trigger [valueFlowBailoutIncompleteVar] kbreakout-22.12.3/src/mainwindow.cpp:252:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Trigger [valueFlowBailoutIncompleteVar] kbreakout-22.12.3/src/mainwindow.cpp:261:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Trigger [valueFlowBailoutIncompleteVar] kbreakout-22.12.3/src/mainwindow.cpp:280:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Trigger [valueFlowBailoutIncompleteVar] kbreakout-22.12.3/src/mainwindow.cpp:230:5: warning: Either the condition 'ksdialog' is redundant or there is possible null pointer dereference: ksdialog. [nullPointerRedundantCheck] kbreakout-22.12.3/src/mainwindow.cpp:234:9: note: Assuming that condition 'ksdialog' is not redundant kbreakout-22.12.3/src/mainwindow.cpp:230:5: note: Null pointer dereference kbreakout-22.12.3/src/mainwindow.cpp:231:5: warning: Either the condition 'ksdialog' is redundant or there is possible null pointer dereference: ksdialog. [nullPointerRedundantCheck] kbreakout-22.12.3/src/mainwindow.cpp:234:9: note: Assuming that condition 'ksdialog' is not redundant kbreakout-22.12.3/src/mainwindow.cpp:231:5: note: Null pointer dereference kbreakout-22.12.3/src/mainwindow.cpp:232:5: warning: Either the condition 'ksdialog' is redundant or there is possible null pointer dereference: ksdialog. [nullPointerRedundantCheck] kbreakout-22.12.3/src/mainwindow.cpp:234:9: note: Assuming that condition 'ksdialog' is not redundant kbreakout-22.12.3/src/mainwindow.cpp:232:5: note: Null pointer dereference kbreakout-22.12.3/src/mainwindow.cpp:305:17: style: The comparison 'dontAsk == false' is always true because 'dontAsk' and 'false' represent the same value. [knownConditionTrueFalse] kbreakout-22.12.3/src/mainwindow.cpp:295:20: note: 'dontAsk' is assigned value 'false' here. kbreakout-22.12.3/src/mainwindow.cpp:305:17: note: The comparison 'dontAsk == false' is always true because 'dontAsk' and 'false' represent the same value. diff: DONE