2024-04-16 20:39 ftp://ftp.de.debian.org/debian/pool/main/g/gfpoken/gfpoken_1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=gtk --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j2 platform: Linux-6.6.15-amd64-x86_64-with-glibc2.37 python: 3.11.8 client-version: 1.3.53 compiler: g++ (Debian 13.2.0-13) 13.2.0 cppcheck: head 2.13.0 head-info: 8cd680b (2024-04-15 22:43:04 +0200) count: 61 51 elapsed-time: 0.4 0.3 head-timing-info: old-timing-info: head results: gfpoken-1/convert.c:77:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gfpoken-1/convert.c:82:17: style:inconclusive: Function 'objtodr' argument 1 names different: declaration 'oject' definition 'object'. [funcArgNamesDifferent] gfpoken-1/gfp.h:218:17: note: Function 'objtodr' argument 1 names different: declaration 'oject' definition 'object'. gfpoken-1/convert.c:82:17: note: Function 'objtodr' argument 1 names different: declaration 'oject' definition 'object'. gfpoken-1/dialog.c:80:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gfpoken-1/dialog.c:220:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gfpoken-1/dialog.c:356:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] gfpoken-1/dialog.c:440:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TOOLBAR_ICONS [valueFlowBailoutIncompleteVar] gfpoken-1/history.c:146:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gfpoken-1/history.c:26:25: style: Parameter 'gr' can be declared as pointer to const [constParameterPointer] gfpoken-1/history.c:67:50: style: Parameter 'gr' can be declared as pointer to const [constParameterPointer] gfpoken-1/dialog.c:303:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gfpoken-1/dialog.c:308:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gfpoken-1/dialog.c:316:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gfpoken-1/dialog.c:321:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gfpoken-1/dialog.c:436:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gfpoken-1/dialog.c:448:20: 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] gfpoken-1/dialog.c:452:23: 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] gfpoken-1/dialog.c:475:16: 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] gfpoken-1/dialog.c:490:14: 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] gfpoken-1/dialog.c:521:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gfpoken-1/dialog.c:522:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gfpoken-1/dialog.c:80:5: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] gfpoken-1/dialog.c:180:2: portability: %d in format string (no. 1) requires 'int' but the argument type is 'obj {aka unsigned int}'. [invalidPrintfArgType_sint] gfpoken-1/dialog.c:185:2: portability: %d in format string (no. 1) requires 'int' but the argument type is 'obj {aka unsigned int}'. [invalidPrintfArgType_sint] gfpoken-1/dialog.c:190:2: portability: %d in format string (no. 1) requires 'int' but the argument type is 'obj {aka unsigned int}'. [invalidPrintfArgType_sint] gfpoken-1/dialog.c:194:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gfpoken-1/dialog.c:220:4: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] gfpoken-1/dialog.c:368:5: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gfpoken-1/dialog.c:368:5: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gfpoken-1/dialog.c:368:5: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gfpoken-1/dialog.c:368:5: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gfpoken-1/dialog.c:368:5: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gfpoken-1/dialog.c:368:5: warning: %d in format string (no. 8) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gfpoken-1/dialog.c:368:5: warning: %d in format string (no. 9) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gfpoken-1/dialog.c:368:5: warning: %d in format string (no. 10) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gfpoken-1/dialog.c:368:5: warning: %d in format string (no. 11) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gfpoken-1/dialog.c:61:28: style: Variable 'upperbound' is assigned a value that is never used. [unreadVariable] gfpoken-1/dialog.c:61:70: style: Variable 'randland' is assigned a value that is never used. [unreadVariable] gfpoken-1/dialog.c:61:95: style: Variable 'randchoice' is assigned a value that is never used. [unreadVariable] gfpoken-1/dialog.c:63:8: style: Variable 'x' is assigned a value that is never used. [unreadVariable] gfpoken-1/dialog.c:63:13: style: Variable 'y' is assigned a value that is never used. [unreadVariable] gfpoken-1/interface.c:210:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vscrollbar [valueFlowBailoutIncompleteVar] gfpoken-1/interface.c:272:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] gfpoken-1/main.c:447:42: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] gfpoken-1/multi.c:156:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbox [valueFlowBailoutIncompleteVar] gfpoken-1/multi.c:305:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gfpoken-1/multi.c:331:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSIZE_MAX [valueFlowBailoutIncompleteVar] gfpoken-1/multi.c:465:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSIZE_MAX [valueFlowBailoutIncompleteVar] gfpoken-1/multi.c:599:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSIZE_MAX [valueFlowBailoutIncompleteVar] gfpoken-1/multi.c:697:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] gfpoken-1/multi.c:736:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] gfpoken-1/multi.c:166:14: 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] gfpoken-1/multi.c:185:14: 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] gfpoken-1/multi.c:197:17: 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] gfpoken-1/multi.c:216:16: 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] gfpoken-1/multi.c:226:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gfpoken-1/multi.c:227:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gfpoken-1/multi.c:228:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gfpoken-1/multi.c:727:23: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] gfpoken-1/multi.c:749:25: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] gfpoken-1/multi.c:517:7: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] gfpoken-1/multi.c:673:2: portability: %d in format string (no. 1) requires 'int' but the argument type is 'obj {aka unsigned int}'. [invalidPrintfArgType_sint] diff: head gfpoken-1/dialog.c:180:2: portability: %d in format string (no. 1) requires 'int' but the argument type is 'obj {aka unsigned int}'. [invalidPrintfArgType_sint] 2.13.0 gfpoken-1/dialog.c:180:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] head gfpoken-1/dialog.c:185:2: portability: %d in format string (no. 1) requires 'int' but the argument type is 'obj {aka unsigned int}'. [invalidPrintfArgType_sint] 2.13.0 gfpoken-1/dialog.c:185:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] head gfpoken-1/dialog.c:190:2: portability: %d in format string (no. 1) requires 'int' but the argument type is 'obj {aka unsigned int}'. [invalidPrintfArgType_sint] 2.13.0 gfpoken-1/dialog.c:190:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] head gfpoken-1/dialog.c:220:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gfpoken-1/dialog.c:356:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head gfpoken-1/dialog.c:440:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TOOLBAR_ICONS [valueFlowBailoutIncompleteVar] head gfpoken-1/interface.c:272:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] head gfpoken-1/multi.c:156:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbox [valueFlowBailoutIncompleteVar] head gfpoken-1/multi.c:305:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gfpoken-1/multi.c:331:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSIZE_MAX [valueFlowBailoutIncompleteVar] head gfpoken-1/multi.c:465:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSIZE_MAX [valueFlowBailoutIncompleteVar] head gfpoken-1/multi.c:599:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSIZE_MAX [valueFlowBailoutIncompleteVar] head gfpoken-1/multi.c:673:2: portability: %d in format string (no. 1) requires 'int' but the argument type is 'obj {aka unsigned int}'. [invalidPrintfArgType_sint] 2.13.0 gfpoken-1/multi.c:673:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] head gfpoken-1/multi.c:697:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] head gfpoken-1/multi.c:736:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] 2.13.0 gfpoken-1/multi.c:94:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] DONE