2025-11-18 00:53 ftp://ftp.de.debian.org/debian/pool/main/k/knighttime/knighttime_6.5.2.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 --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j90 platform: Linux-6.8.0-87-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.18.0 head-info: d8b6e08 (2025-11-17 23:40:03 +0100) count: 42 44 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: knighttime-6.5.2/examples/monitor/main.cpp:19:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable scheduleChanged [valueFlowBailoutIncompleteVar] knighttime-6.5.2/autotests/transition_test.cpp:25:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Upcoming [valueFlowBailoutIncompleteVar] knighttime-6.5.2/autotests/cycle_test.cpp:58:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] knighttime-6.5.2/autotests/cycle_test.cpp:70:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] knighttime-6.5.2/src/daemon/main.cpp:22:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Unique [valueFlowBailoutIncompleteVar] knighttime-6.5.2/src/daemon/ksolardarklightscheduler.cpp:21:14: style: Local variable 'schedule' shadows outer function [shadowFunction] knighttime-6.5.2/src/daemon/ksolardarklightscheduler.h:20:24: note: Shadowed declaration knighttime-6.5.2/src/daemon/ksolardarklightscheduler.cpp:21:14: note: Shadow variable knighttime-6.5.2/src/daemon/kdarklightmanagerinterface.cpp:26:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WatchForUnregistration [valueFlowBailoutIncompleteVar] knighttime-6.5.2/src/daemon/kdarklightmanagerinterface.cpp:32:34: performance:inconclusive: Either there is a missing 'override', or the member function 'KDarkLightManagerInterface::version' can be static. [functionStatic] knighttime-6.5.2/src/daemon/kdarklightmanagerinterface.h:27:10: note: Either there is a missing 'override', or the member function 'KDarkLightManagerInterface::version' can be static. knighttime-6.5.2/src/daemon/kdarklightmanagerinterface.cpp:32:34: note: Either there is a missing 'override', or the member function 'KDarkLightManagerInterface::version' can be static. knighttime-6.5.2/src/kdarklightschedule.h:175:5: style: Class 'KDarkLightSchedule' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] knighttime-6.5.2/src/kdarklightscheduleprovider.h:53:24: performance: Function 'schedule()' should return member 'schedule' by const reference. [returnByReference] knighttime-6.5.2/src/kdarklightscheduleprovider.h:60:13: performance: Function 'state()' should return member 'state' by const reference. [returnByReference] knighttime-6.5.2/src/kdarklightscheduleprovider.cpp:24:14: style: Local variable 'schedule' shadows outer function [shadowFunction] knighttime-6.5.2/src/kdarklightscheduleprovider.h:53:24: note: Shadowed declaration knighttime-6.5.2/src/kdarklightscheduleprovider.cpp:24:14: note: Shadow variable knighttime-6.5.2/src/kdarklightscheduleprovider.cpp:27:21: style: Local variable 'schedule' shadows outer function [shadowFunction] knighttime-6.5.2/src/kdarklightscheduleprovider.h:53:24: note: Shadowed declaration knighttime-6.5.2/src/kdarklightscheduleprovider.cpp:27:21: note: Shadow variable knighttime-6.5.2/src/daemon/kdarklightmanager.cpp:41:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Times [valueFlowBailoutIncompleteVar] knighttime-6.5.2/src/kdarklightdbustypes_p.h:87:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable noonTimestamp [valueFlowBailoutIncompleteVar] knighttime-6.5.2/src/kdarklightdbustypes_p.h:121:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] knighttime-6.5.2/src/kdarklightschedulesubscription.cpp:34:206: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QVariantMap [valueFlowBailoutIncompleteVar] knighttime-6.5.2/src/kdarklightschedulesubscription.cpp:84:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KNIGHTTIME [valueFlowBailoutIncompleteVar] knighttime-6.5.2/src/kdarklightschedulesubscription_p.h:22:13: performance: Function 'state()' should return member 'm_state' by const reference. [returnByReference] knighttime-6.5.2/src/kdarklightschedule.cpp:150:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] knighttime-6.5.2/src/kdarklightschedule.cpp:171:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] knighttime-6.5.2/src/kdarklightschedule.cpp:208:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] knighttime-6.5.2/src/kdarklightschedule.cpp:238:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] knighttime-6.5.2/src/kdarklightschedule.cpp:273:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] knighttime-6.5.2/src/kdarklightschedule.cpp:297:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] knighttime-6.5.2/src/kdarklightschedule.cpp:325:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] knighttime-6.5.2/src/kdarklightschedule.cpp:361:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteOnly [valueFlowBailoutIncompleteVar] knighttime-6.5.2/src/kdarklightschedule.cpp:372:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] knighttime-6.5.2/src/kdarklightschedule.cpp:424:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] knighttime-6.5.2/src/daemon/kdarklightmanager.cpp:160:16: style: Local variable 'schedule' shadows outer function [shadowFunction] knighttime-6.5.2/src/daemon/kdarklightmanager.h:29:24: note: Shadowed declaration knighttime-6.5.2/src/daemon/kdarklightmanager.cpp:160:16: note: Shadow variable knighttime-6.5.2/src/daemon/kdarklightmanager.cpp:130:32: style: Variable 'currentScheduler' can be declared as pointer to const [constVariablePointer] knighttime-6.5.2/autotests/schedule_test.cpp:75:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] knighttime-6.5.2/autotests/schedule_test.cpp:99:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] knighttime-6.5.2/src/kdarklightschedule.h:182:28: performance: Function 'cycles()' should return member 'm_cycles' by const reference. [returnByReference] knighttime-6.5.2/src/kdarklightschedule.cpp:391:28: style: Local variable 'cycles' shadows outer function [shadowFunction] knighttime-6.5.2/src/kdarklightschedule.h:182:28: note: Shadowed declaration knighttime-6.5.2/src/kdarklightschedule.cpp:391:28: note: Shadow variable knighttime-6.5.2/src/kdarklightschedule.cpp:416:28: style: Local variable 'cycles' shadows outer function [shadowFunction] knighttime-6.5.2/src/kdarklightschedule.h:182:28: note: Shadowed declaration knighttime-6.5.2/src/kdarklightschedule.cpp:416:28: note: Shadow variable knighttime-6.5.2/autotests/schedule_test.cpp:132:24: style: Local variable 'previousTransition' shadows outer function [shadowFunction] knighttime-6.5.2/autotests/schedule_test.cpp:23:10: note: Shadowed declaration knighttime-6.5.2/autotests/schedule_test.cpp:132:24: note: Shadow variable knighttime-6.5.2/autotests/schedule_test.cpp:150:24: style: Local variable 'previousTransition' shadows outer function [shadowFunction] knighttime-6.5.2/autotests/schedule_test.cpp:23:10: note: Shadowed declaration knighttime-6.5.2/autotests/schedule_test.cpp:150:24: note: Shadow variable knighttime-6.5.2/autotests/schedule_test.cpp:172:24: style: Local variable 'previousTransition' shadows outer function [shadowFunction] knighttime-6.5.2/autotests/schedule_test.cpp:23:10: note: Shadowed declaration knighttime-6.5.2/autotests/schedule_test.cpp:172:24: note: Shadow variable knighttime-6.5.2/autotests/schedule_test.cpp:212:24: style: Local variable 'nextTransition' shadows outer function [shadowFunction] knighttime-6.5.2/autotests/schedule_test.cpp:24:10: note: Shadowed declaration knighttime-6.5.2/autotests/schedule_test.cpp:212:24: note: Shadow variable knighttime-6.5.2/autotests/schedule_test.cpp:230:24: style: Local variable 'nextTransition' shadows outer function [shadowFunction] knighttime-6.5.2/autotests/schedule_test.cpp:24:10: note: Shadowed declaration knighttime-6.5.2/autotests/schedule_test.cpp:230:24: note: Shadow variable knighttime-6.5.2/autotests/schedule_test.cpp:252:24: style: Local variable 'nextTransition' shadows outer function [shadowFunction] knighttime-6.5.2/autotests/schedule_test.cpp:24:10: note: Shadowed declaration knighttime-6.5.2/autotests/schedule_test.cpp:252:24: note: Shadow variable diff: 2.18.0 knighttime-6.5.2/autotests/schedule_test.cpp:30:146: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable 30min [valueFlowBailoutIncompleteVar] 2.18.0 knighttime-6.5.2/autotests/schedule_test.cpp:73:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable 3h [valueFlowBailoutIncompleteVar] head knighttime-6.5.2/autotests/schedule_test.cpp:75:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nullopt [valueFlowBailoutIncompleteVar] 2.18.0 knighttime-6.5.2/src/daemon/kdarklightmanager.cpp:88:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable 24h [valueFlowBailoutIncompleteVar] DONE