2024-04-24 19:48 ftp://ftp.de.debian.org/debian/pool/main/g/gfm/gfm_1.09~git20220826.71eaa92.orig.tar.bz2 cppcheck-options: --library=posix --library=gnu --library=bsd --library=mfc --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.5.0-28-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.57 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 cppcheck: head 2.14.0 head-info: 94f28a2 (2024-04-24 20:47:54 +0200) count: 50 50 elapsed-time: 0.2 0.2 head-timing-info: old-timing-info: head results: gfm-1.09~git20220826.71eaa92/man/cleaner.c:38:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/cmdline.c:56:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/cmdline.c:72:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_LOG_LEVEL_WARNING [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/paths.h:31:0: error: #error "Maybe trying to define a SHARE_DIR definition to GCC to where you shared stuff for GFM will be located before compiling." [preprocessorErrorDirective] gfm-1.09~git20220826.71eaa92/src/ctree.c:309:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GtkTreeIter [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/ctree.c:463:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_2BUTTON_PRESS [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/filesel.c:85:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_OPEN [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/filesel.c:324:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_CANCEL [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/kde-private.h:24:8: error: There is an unknown macro here somewhere. Configuration is required. If slots is a macro then please configure it. [unknownMacro] gfm-1.09~git20220826.71eaa92/src/ctree.c:407:18: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] gfm-1.09~git20220826.71eaa92/src/ctree.c:39:45: style: Parameter 'column' can be declared as pointer to const [constParameterPointer] gfm-1.09~git20220826.71eaa92/src/ctree.c:45:22: style: Variable 'col' can be declared as pointer to const [constVariablePointer] gfm-1.09~git20220826.71eaa92/src/ctree.c:441:22: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] gfm-1.09~git20220826.71eaa92/src/ctree.c:511:41: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] gfm-1.09~git20220826.71eaa92/src/ctree.c:511:62: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] gfm-1.09~git20220826.71eaa92/src/ctree.c:512:18: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] gfm-1.09~git20220826.71eaa92/src/labels.c:54:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/labels.c:122:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gfm-1.09~git20220826.71eaa92/src/labels.c:137:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gfm-1.09~git20220826.71eaa92/src/labels.c:126:3: error: Memory leak: str [memleak] gfm-1.09~git20220826.71eaa92/src/labels.c:141:3: error: Memory leak: str [memleak] gfm-1.09~git20220826.71eaa92/src/labels.c:44:8: style: Variable 'path' can be declared as pointer to const [constVariablePointer] gfm-1.09~git20220826.71eaa92/src/splashscreen.c:62:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/support.c:77:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/splashscreen.c:77: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] gfm-1.09~git20220826.71eaa92/src/splashscreen.c:126:33: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] gfm-1.09~git20220826.71eaa92/src/support.c:70:9: style: Variable 'elem' can be declared as pointer to const [constVariablePointer] gfm-1.09~git20220826.71eaa92/src/rwgroup.c:52:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIFILE_TIGROUP [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/rwgroup.c:150:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIFILE_TIGROUP [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/rwgroup.c:265:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIFILE_SINGLE [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/rwgroup.c:292:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIFILE_FLASH [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/rwgroup.c:351:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CALC_NONE [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/rwgroup.c:370:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIFILE_GROUP [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/rwgroup.c:398:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIFILE_GROUP [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/rwgroup.c:533:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CALC_NONE [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/rwgroup.c:547:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIFILE_TIGROUP [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/rwgroup.c:559:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIFILE_TIGROUP [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/rwgroup.c:571:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIFILE_TIGROUP [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/rwgroup.c:583:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIFILE_TIGROUP [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/ungroup.c:60:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/ungroup.c:128:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIFILE_TIGROUP [valueFlowBailoutIncompleteVar] gfm-1.09~git20220826.71eaa92/src/ungroup.c:55:3: error: Memory leak: dirname [memleak] gfm-1.09~git20220826.71eaa92/src/ungroup.c:55:3: error: Memory leak: basename [memleak] gfm-1.09~git20220826.71eaa92/src/ungroup.c:69:3: error: Memory leak: folder [memleak] gfm-1.09~git20220826.71eaa92/src/ungroup.c:115:9: style: Variable 'dirname' can be declared as pointer to const [constVariablePointer] gfm-1.09~git20220826.71eaa92/src/rwgroup.c:81:12: style: Variable 've' can be declared as pointer to const [constVariablePointer] gfm-1.09~git20220826.71eaa92/src/rwgroup.c:141:14: style: Variable 'content' can be declared as pointer to const [constVariablePointer] gfm-1.09~git20220826.71eaa92/src/rwgroup.c:285:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] gfm-1.09~git20220826.71eaa92/src/rwgroup.c:366:15: style: Variable 'content' can be declared as pointer to const [constVariablePointer] gfm-1.09~git20220826.71eaa92/src/rwgroup.c:369:10: style: Variable 'content' is assigned a value that is never used. [unreadVariable] diff: DONE