2024-03-26 12:05 ftp://ftp.de.debian.org/debian/pool/main/b/bfm/bfm_0.6.4.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=motif --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-6.5.0-25-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.55 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 cppcheck: head 2.13.0 head-info: 82f05c8 (2024-03-25 22:58:58 +0100) count: 67 50 elapsed-time: 1.4 1.2 head-timing-info: old-timing-info: head results: bfm-0.6.4/bubblemon.c:220:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] bfm-0.6.4/bubblemon.c:389:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bfm-0.6.4/bubblemon.c:708:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS_MASK [valueFlowBailoutIncompleteVar] bfm-0.6.4/bubblemon.c:1627:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int64_t [valueFlowBailoutIncompleteVar] bfm-0.6.4/bubblemon.c:580:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] bfm-0.6.4/bubblemon.c:277:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] bfm-0.6.4/bubblemon.c:806:18: style: Local variable 'real_waterlevel_min' shadows outer variable [shadowVariable] bfm-0.6.4/bubblemon.c:788:14: note: Shadowed declaration bfm-0.6.4/bubblemon.c:806:18: note: Shadow variable bfm-0.6.4/bubblemon.c:806:39: style: Local variable 'real_waterlevel_max' shadows outer variable [shadowVariable] bfm-0.6.4/bubblemon.c:788:35: note: Shadowed declaration bfm-0.6.4/bubblemon.c:806:39: note: Shadow variable bfm-0.6.4/bubblemon.c:220:30: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] bfm-0.6.4/bubblemon.c:379:15: style: Variable 'event' can be declared as pointer to const [constVariablePointer] bfm-0.6.4/bubblemon.c:1078:17: style: Variable 'rgb' can be declared as pointer to const [constVariablePointer] bfm-0.6.4/fishmon.c:182:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable delay [valueFlowBailoutIncompleteVar] bfm-0.6.4/fishmon.c:269:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable speed [valueFlowBailoutIncompleteVar] bfm-0.6.4/fishmon.c:396:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tx [valueFlowBailoutIncompleteVar] bfm-0.6.4/fishmon.c:648:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable speed [valueFlowBailoutIncompleteVar] bfm-0.6.4/fishmon.c:379:7: style: Variable 'i' is reassigned a value before the old one has been used. [redundantAssignment] bfm-0.6.4/fishmon.c:378:7: note: i is assigned bfm-0.6.4/fishmon.c:379:7: note: i is overwritten bfm-0.6.4/fishmon.c:586:21: style:inconclusive: Function 'draw_ascii' argument 1 names different: declaration 'x' definition 'dx'. [funcArgNamesDifferent] bfm-0.6.4/fishmon.c:54:21: note: Function 'draw_ascii' argument 1 names different: declaration 'x' definition 'dx'. bfm-0.6.4/fishmon.c:586:21: note: Function 'draw_ascii' argument 1 names different: declaration 'x' definition 'dx'. bfm-0.6.4/fishmon.c:586:29: style:inconclusive: Function 'draw_ascii' argument 2 names different: declaration 'y' definition 'dy'. [funcArgNamesDifferent] bfm-0.6.4/fishmon.c:54:28: note: Function 'draw_ascii' argument 2 names different: declaration 'y' definition 'dy'. bfm-0.6.4/fishmon.c:586:29: note: Function 'draw_ascii' argument 2 names different: declaration 'y' definition 'dy'. bfm-0.6.4/fishmon.c:571:40: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] bfm-0.6.4/fishmon.c:588:11: style: Variable 'source' can be declared as pointer to const [constVariablePointer] bfm-0.6.4/gkrellm-bfm.c:356:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_POS_TOP [valueFlowBailoutIncompleteVar] bfm-0.6.4/gkrellm-bfm.c:181:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] bfm-0.6.4/gkrellm-bfm.c:185:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] bfm-0.6.4/gkrellm-bfm.c:188:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] bfm-0.6.4/gkrellm-bfm.c:191:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] bfm-0.6.4/gkrellm-bfm.c:364:13: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] bfm-0.6.4/gkrellm-bfm.c:372:13: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] bfm-0.6.4/gkrellm-bfm.c:404:9: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] bfm-0.6.4/gkrellm-bfm.c:412:12: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] bfm-0.6.4/gkrellm-bfm.c:429:12: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] bfm-0.6.4/gkrellm-bfm.c:445:9: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] bfm-0.6.4/gkrellm-bfm.c:453:13: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] bfm-0.6.4/gkrellm-bfm.c:470:13: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] bfm-0.6.4/gkrellm-bfm.c:486:9: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] bfm-0.6.4/gkrellm-bfm.c:494:14: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] bfm-0.6.4/gkrellm-bfm.c:511:21: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] bfm-0.6.4/gkrellm-bfm.c:534:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] bfm-0.6.4/gkrellm-bfm.c:535:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] bfm-0.6.4/gkrellm-bfm.c:536:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] bfm-0.6.4/gkrellm-bfm.c:537:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] bfm-0.6.4/gkrellm-bfm.c:538:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] bfm-0.6.4/gkrellm-bfm.c:539:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] bfm-0.6.4/gkrellm-bfm.c:580:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] bfm-0.6.4/gkrellm-bfm.c:585:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] bfm-0.6.4/gkrellm-bfm.c:118:57: style: Parameter 'ev' can be declared as pointer to const. However it seems that 'button_release_event' is a callback function, if 'ev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bfm-0.6.4/gkrellm-bfm.c:186:29: note: You might need to cast the function pointer here bfm-0.6.4/gkrellm-bfm.c:118:57: note: Parameter 'ev' can be declared as pointer to const bfm-0.6.4/gkrellm-bfm.c:145:31: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'enter_notify_event' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bfm-0.6.4/gkrellm-bfm.c:189:27: note: You might need to cast the function pointer here bfm-0.6.4/gkrellm-bfm.c:145:31: note: Parameter 'widget' can be declared as pointer to const bfm-0.6.4/gkrellm-bfm.c:145:55: style: Parameter 'ev' can be declared as pointer to const. However it seems that 'enter_notify_event' is a callback function, if 'ev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bfm-0.6.4/gkrellm-bfm.c:189:27: note: You might need to cast the function pointer here bfm-0.6.4/gkrellm-bfm.c:145:55: note: Parameter 'ev' can be declared as pointer to const bfm-0.6.4/gkrellm-bfm.c:145:68: style: Parameter 'data' can be declared as pointer to const. However it seems that 'enter_notify_event' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bfm-0.6.4/gkrellm-bfm.c:189:27: note: You might need to cast the function pointer here bfm-0.6.4/gkrellm-bfm.c:145:68: note: Parameter 'data' can be declared as pointer to const bfm-0.6.4/gkrellm-bfm.c:152:31: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'leave_notify_event' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bfm-0.6.4/gkrellm-bfm.c:192:27: note: You might need to cast the function pointer here bfm-0.6.4/gkrellm-bfm.c:152:31: note: Parameter 'widget' can be declared as pointer to const bfm-0.6.4/gkrellm-bfm.c:152:55: style: Parameter 'ev' can be declared as pointer to const. However it seems that 'leave_notify_event' is a callback function, if 'ev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bfm-0.6.4/gkrellm-bfm.c:192:27: note: You might need to cast the function pointer here bfm-0.6.4/gkrellm-bfm.c:152:55: note: Parameter 'ev' can be declared as pointer to const bfm-0.6.4/gkrellm-bfm.c:152:68: style: Parameter 'data' can be declared as pointer to const. However it seems that 'leave_notify_event' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bfm-0.6.4/gkrellm-bfm.c:192:27: note: You might need to cast the function pointer here bfm-0.6.4/gkrellm-bfm.c:152:68: note: Parameter 'data' can be declared as pointer to const bfm-0.6.4/gkrellm-bfm.c:206:13: style: Variable 'togglebutton' can be declared as pointer to const [constVariablePointer] bfm-0.6.4/gkrellm-bfm.c:578:9: style: Variable 'config_item' can be declared as pointer to const [constVariablePointer] bfm-0.6.4/sys_freebsd.c:69:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable n_type [valueFlowBailoutIncompleteVar] bfm-0.6.4/sys_freebsd.c:92:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CPUSTATES [valueFlowBailoutIncompleteVar] bfm-0.6.4/sys_freebsd.c:135:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable n_value [valueFlowBailoutIncompleteVar] bfm-0.6.4/sys_linux.c:91:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] bfm-0.6.4/sys_openbsd.c:42:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CPUSTATES [valueFlowBailoutIncompleteVar] bfm-0.6.4/sys_openbsd.c:91:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWAP_NSWAP [valueFlowBailoutIncompleteVar] bfm-0.6.4/sys_openbsd.c:93:14: style: Variable 'rnswap' is assigned a value that is never used. [unreadVariable] bfm-0.6.4/sys_sunos.c:146:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CPU_USER [valueFlowBailoutIncompleteVar] bfm-0.6.4/sys_sunos.c:253:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_PAGESIZE [valueFlowBailoutIncompleteVar] bfm-0.6.4/sys_sunos.c:271:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_PAGESIZE [valueFlowBailoutIncompleteVar] bfm-0.6.4/sys_sunos.c:159:14: style: Local variable 'i' shadows outer variable [shadowVariable] bfm-0.6.4/sys_sunos.c:121:37: note: Shadowed declaration bfm-0.6.4/sys_sunos.c:159:14: note: Shadow variable bfm-0.6.4/sys_sunos.c:70:8: style: Variable 'str' can be declared as pointer to const [constVariablePointer] bfm-0.6.4/sys_sunos.c:70:12: style: Variable 'str' is assigned a value that is never used. [unreadVariable] bfm-0.6.4/sys_sunos.c:81:12: style: Variable 'str' is assigned a value that is never used. [unreadVariable] diff: head bfm-0.6.4/bubblemon.c:1627:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int64_t [valueFlowBailoutIncompleteVar] head bfm-0.6.4/bubblemon.c:389:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head bfm-0.6.4/bubblemon.c:708:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS_MASK [valueFlowBailoutIncompleteVar] head bfm-0.6.4/fishmon.c:269:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable speed [valueFlowBailoutIncompleteVar] head bfm-0.6.4/fishmon.c:396:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tx [valueFlowBailoutIncompleteVar] head bfm-0.6.4/fishmon.c:648:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable speed [valueFlowBailoutIncompleteVar] 2.13.0 bfm-0.6.4/gkrellm-bfm.c:102:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] head bfm-0.6.4/gkrellm-bfm.c:145:31: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'enter_notify_event' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bfm-0.6.4/gkrellm-bfm.c:189:27: note: You might need to cast the function pointer here bfm-0.6.4/gkrellm-bfm.c:145:31: note: Parameter 'widget' can be declared as pointer to const head bfm-0.6.4/gkrellm-bfm.c:145:55: style: Parameter 'ev' can be declared as pointer to const. However it seems that 'enter_notify_event' is a callback function, if 'ev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bfm-0.6.4/gkrellm-bfm.c:189:27: note: You might need to cast the function pointer here bfm-0.6.4/gkrellm-bfm.c:145:55: note: Parameter 'ev' can be declared as pointer to const head bfm-0.6.4/gkrellm-bfm.c:145:68: style: Parameter 'data' can be declared as pointer to const. However it seems that 'enter_notify_event' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bfm-0.6.4/gkrellm-bfm.c:189:27: note: You might need to cast the function pointer here bfm-0.6.4/gkrellm-bfm.c:145:68: note: Parameter 'data' can be declared as pointer to const head bfm-0.6.4/gkrellm-bfm.c:152:31: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'leave_notify_event' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bfm-0.6.4/gkrellm-bfm.c:192:27: note: You might need to cast the function pointer here bfm-0.6.4/gkrellm-bfm.c:152:31: note: Parameter 'widget' can be declared as pointer to const head bfm-0.6.4/gkrellm-bfm.c:152:55: style: Parameter 'ev' can be declared as pointer to const. However it seems that 'leave_notify_event' is a callback function, if 'ev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bfm-0.6.4/gkrellm-bfm.c:192:27: note: You might need to cast the function pointer here bfm-0.6.4/gkrellm-bfm.c:152:55: note: Parameter 'ev' can be declared as pointer to const head bfm-0.6.4/gkrellm-bfm.c:152:68: style: Parameter 'data' can be declared as pointer to const. However it seems that 'leave_notify_event' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bfm-0.6.4/gkrellm-bfm.c:192:27: note: You might need to cast the function pointer here bfm-0.6.4/gkrellm-bfm.c:152:68: note: Parameter 'data' can be declared as pointer to const head bfm-0.6.4/gkrellm-bfm.c:356:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_POS_TOP [valueFlowBailoutIncompleteVar] head bfm-0.6.4/sys_freebsd.c:135:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable n_value [valueFlowBailoutIncompleteVar] head bfm-0.6.4/sys_freebsd.c:92:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CPUSTATES [valueFlowBailoutIncompleteVar] head bfm-0.6.4/sys_openbsd.c:91:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWAP_NSWAP [valueFlowBailoutIncompleteVar] head bfm-0.6.4/sys_sunos.c:253:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_PAGESIZE [valueFlowBailoutIncompleteVar] head bfm-0.6.4/sys_sunos.c:271:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_PAGESIZE [valueFlowBailoutIncompleteVar] DONE