2025-11-21 13:02 ftp://ftp.de.debian.org/debian/pool/main/g/gkrellmitime/gkrellmitime_1.0.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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-5.4.0-216-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.69 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 cppcheck: head 2.18.0 head-info: 5374cd3 (2025-11-20 15:35:39 +0100) count: 12 12 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: gkrellmitime-1.0.1/gkrellm_itime.c:171:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] gkrellmitime-1.0.1/gkrellm_itime.c:194:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS [valueFlowBailoutIncompleteVar] gkrellmitime-1.0.1/gkrellm_itime.c:243:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_POS_TOP [valueFlowBailoutIncompleteVar] gkrellmitime-1.0.1/gkrellm_itime.c:301:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CFG_BUFSIZE [valueFlowBailoutIncompleteVar] gkrellmitime-1.0.1/gkrellm_itime.c:339:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAL_STYLE_NAME [valueFlowBailoutIncompleteVar] gkrellmitime-1.0.1/gkrellm_itime.c:158:17: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] gkrellmitime-1.0.1/gkrellm_itime.c:304:13: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] gkrellmitime-1.0.1/gkrellm_itime.c:152:14: style: Variable 'my_tm' can be declared as pointer to const [constVariablePointer] gkrellmitime-1.0.1/gkrellm_itime.c:177:16: style: Variable 'g_ticks' can be declared as pointer to const [constVariablePointer] gkrellmitime-1.0.1/gkrellm_itime.c:192:33: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'cb_itime' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gkrellmitime-1.0.1/gkrellm_itime.c:230:95: note: You might need to cast the function pointer here gkrellmitime-1.0.1/gkrellm_itime.c:192:33: note: Parameter 'widget' can be declared as pointer to const gkrellmitime-1.0.1/gkrellm_itime.c:192:57: style: Parameter 'ev' can be declared as pointer to const. However it seems that 'cb_itime' is a callback function, if 'ev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gkrellmitime-1.0.1/gkrellm_itime.c:230:95: note: You might need to cast the function pointer here gkrellmitime-1.0.1/gkrellm_itime.c:192:57: note: Parameter 'ev' can be declared as pointer to const gkrellmitime-1.0.1/gkrellm_itime.c:299:33: style: Parameter 'arg' can be declared as pointer to const. However it seems that 'load_config' is a callback function, if 'arg' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gkrellmitime-1.0.1/gkrellm_itime.c:323:3: note: You might need to cast the function pointer here gkrellmitime-1.0.1/gkrellm_itime.c:299:33: note: Parameter 'arg' can be declared as pointer to const diff: DONE