2025-08-31 06:04 ftp://ftp.de.debian.org/debian/pool/main/g/gperiodic/gperiodic_3.0.3.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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.12.41+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 2ee39fe (2025-08-30 22:07:31 +0200) count: 2 46 elapsed-time: 0.1 0.3 head-timing-info: old-timing-info: head results: gperiodic-3.0.3/gperiodic.h:71:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] gperiodic-3.0.3/gperiodic.h:71:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] diff: 2.18.0 gperiodic-3.0.3/gperiodic.c:104:23: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] 2.18.0 gperiodic-3.0.3/gperiodic.c:105:71: style: Unused variable: sound_button [unusedVariable] 2.18.0 gperiodic-3.0.3/gperiodic.c:105:86: style: Unused variable: hbox_sound [unusedVariable] 2.18.0 gperiodic-3.0.3/gperiodic.c:106:12: style: Unused variable: x1 [unusedVariable] 2.18.0 gperiodic-3.0.3/gperiodic.c:106:16: style: Unused variable: x2 [unusedVariable] 2.18.0 gperiodic-3.0.3/gperiodic.c:106:20: style: Unused variable: y1 [unusedVariable] 2.18.0 gperiodic-3.0.3/gperiodic.c:106:24: style: Unused variable: y2 [unusedVariable] 2.18.0 gperiodic-3.0.3/gperiodic.c:107:15: style: Unused variable: tmpbuf [unusedVariable] 2.18.0 gperiodic-3.0.3/gperiodic.c:107:9: style: Unused variable: buff [unusedVariable] 2.18.0 gperiodic-3.0.3/gperiodic.c:115:46: error: Allocation with g_locale_to_utf8, gtk_window_set_title doesn't release it. [leakNoVarFunctionCall] 2.18.0 gperiodic-3.0.3/gperiodic.c:121:12: 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] 2.18.0 gperiodic-3.0.3/gperiodic.c:123:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable action_area [valueFlowBailoutIncompleteVar] 2.18.0 gperiodic-3.0.3/gperiodic.c:137:61: error: Allocation with g_locale_to_utf8, gtk_label_set_markup doesn't release it. [leakNoVarFunctionCall] 2.18.0 gperiodic-3.0.3/gperiodic.c:139:49: error: Allocation with g_locale_to_utf8, gtk_label_set_markup doesn't release it. [leakNoVarFunctionCall] 2.18.0 gperiodic-3.0.3/gperiodic.c:153:18: 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] 2.18.0 gperiodic-3.0.3/gperiodic.c:157:15: 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] 2.18.0 gperiodic-3.0.3/gperiodic.c:224:38: debug: Function::addArguments found argument 'entry' with varid 0. [varid0] 2.18.0 gperiodic-3.0.3/gperiodic.c:256:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bg [valueFlowBailoutIncompleteVar] 2.18.0 gperiodic-3.0.3/gperiodic.c:271:10: 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] 2.18.0 gperiodic-3.0.3/gperiodic.c:292:29: error: Allocation with g_locale_to_utf8, strcmp doesn't release it. [leakNoVarFunctionCall] 2.18.0 gperiodic-3.0.3/gperiodic.c:293:32: error: Allocation with g_locale_to_utf8, strcmp doesn't release it. [leakNoVarFunctionCall] 2.18.0 gperiodic-3.0.3/gperiodic.c:324:7: style: Unused variable: menu_num_items [unusedVariable] 2.18.0 gperiodic-3.0.3/gperiodic.c:325:12: style: Unused variable: tooltip_color_bg [unusedVariable] 2.18.0 gperiodic-3.0.3/gperiodic.c:325:30: style: Unused variable: tooltip_color_fg [unusedVariable] 2.18.0 gperiodic-3.0.3/gperiodic.c:326:12: style: Unused variable: gree [unusedVariable] 2.18.0 gperiodic-3.0.3/gperiodic.c:326:18: style: Unused variable: blue [unusedVariable] 2.18.0 gperiodic-3.0.3/gperiodic.c:326:7: style: Unused variable: red [unusedVariable] 2.18.0 gperiodic-3.0.3/gperiodic.c:360:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 gperiodic-3.0.3/gperiodic.c:361:45: error: Allocation with g_locale_to_utf8, gtk_window_set_title doesn't release it. [leakNoVarFunctionCall] 2.18.0 gperiodic-3.0.3/gperiodic.c:370:12: 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] 2.18.0 gperiodic-3.0.3/gperiodic.c:411:49: error: Allocation with g_locale_to_utf8, g_warning doesn't release it. [leakNoVarFunctionCall] 2.18.0 gperiodic-3.0.3/gperiodic.c:417:11: style: Unused variable: j [unusedVariable] 2.18.0 gperiodic-3.0.3/gperiodic.c:500:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] 2.18.0 gperiodic-3.0.3/gperiodic.c:84:35: style: Parameter 'w' can be declared as pointer to const. However it seems that 'main_window_exit' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gperiodic-3.0.3/gperiodic.c:367:5: note: You might need to cast the function pointer here gperiodic-3.0.3/gperiodic.c:84:35: note: Parameter 'w' can be declared as pointer to const 2.18.0 gperiodic-3.0.3/gperiodic.c:84:47: style: Parameter 'd' can be declared as pointer to const. However it seems that 'main_window_exit' is a callback function, if 'd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gperiodic-3.0.3/gperiodic.c:367:5: note: You might need to cast the function pointer here gperiodic-3.0.3/gperiodic.c:84:47: note: Parameter 'd' can be declared as pointer to const head gperiodic-3.0.3/gperiodic.h:71:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head gperiodic-3.0.3/gperiodic.h:71:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 gperiodic-3.0.3/table_data.h:100:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gperiodic-3.0.3/table_data.h:242:23: style: Variable 'p' can be declared as pointer to const [constVariablePointer] 2.18.0 gperiodic-3.0.3/table_data.h:243:7: style: Unused variable: i [unusedVariable] 2.18.0 gperiodic-3.0.3/table_data.h:246:5: warning: %d in format string (no. 8) requires 'int' but the argument type is 'const char *'. [invalidPrintfArgType_sint] 2.18.0 gperiodic-3.0.3/table_data.h:246:5: warning: %d in format string (no. 9) requires 'int' but the argument type is 'const char *'. [invalidPrintfArgType_sint] 2.18.0 gperiodic-3.0.3/table_data.h:246:5: warning: printf format string requires 30 parameters but 32 are given. [wrongPrintfScanfArgNum] 2.18.0 gperiodic-3.0.3/table_data.h:77:53: style: Parameter 'entry' can be declared as pointer to const. However it seems that 'solid_fluid_crid' is a callback function, if 'entry' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gperiodic-3.0.3/gperiodic.c:430:28: note: You might need to cast the function pointer here gperiodic-3.0.3/table_data.h:77:53: note: Parameter 'entry' can be declared as pointer to const 2.18.0 gperiodic-3.0.3/table_data.h:82:69: error: Allocation with g_locale_to_utf8, strcmp doesn't release it. [leakNoVarFunctionCall] 2.18.0 gperiodic-3.0.3/table_data.h:85:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gperiodic-3.0.3/table_data.h:95:54: style: Parameter 'entry' can be declared as pointer to const. However it seems that 'condensed_gas_crit' is a callback function, if 'entry' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gperiodic-3.0.3/gperiodic.c:431:30: note: You might need to cast the function pointer here gperiodic-3.0.3/table_data.h:95:54: note: Parameter 'entry' can be declared as pointer to const 2.18.0 gperiodic-3.0.3/table_data.h:98:67: error: Allocation with g_locale_to_utf8, strcmp doesn't release it. [leakNoVarFunctionCall] DONE