2025-11-24 17:46 ftp://ftp.de.debian.org/debian/pool/main/w/wininfo/wininfo_0.7.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 --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.12.57+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: cb76e52 (2025-11-22 14:47:37 +0100) count: 142 141 elapsed-time: 2.6 3.1 head-timing-info: old-timing-info: head results: wininfo-0.7/intl/dgettext.c:52:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] wininfo-0.7/intl/dngettext.c:53:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] wininfo-0.7/intl/bindtextdom.c:226:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable domainname [valueFlowBailoutIncompleteVar] wininfo-0.7/intl/finddomain.c:50:30: style:inconclusive: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. [funcArgNamesDifferent] wininfo-0.7/intl/gettextP.h:157:54: note: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. wininfo-0.7/intl/finddomain.c:50:30: note: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. wininfo-0.7/intl/finddomain.c:50:45: style:inconclusive: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. [funcArgNamesDifferent] wininfo-0.7/intl/gettextP.h:157:71: note: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. wininfo-0.7/intl/finddomain.c:50:45: note: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. wininfo-0.7/intl/finddomain.c:51:16: style:inconclusive: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] wininfo-0.7/intl/gettextP.h:158:19: note: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. wininfo-0.7/intl/finddomain.c:51:16: note: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. wininfo-0.7/intl/finddomain.c:51:44: style:inconclusive: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] wininfo-0.7/intl/gettextP.h:159:23: note: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. wininfo-0.7/intl/finddomain.c:51:44: note: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. wininfo-0.7/intl/eval-plural.h:52:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lor [valueFlowBailoutIncompleteVar] wininfo-0.7/intl/dcigettext.c:545:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] wininfo-0.7/intl/gettext.c:57:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] wininfo-0.7/intl/bindtextdom.c:252:12: style: Local variable 'len' shadows outer variable [shadowVariable] wininfo-0.7/intl/bindtextdom.c:224:14: note: Shadowed declaration wininfo-0.7/intl/bindtextdom.c:252:12: note: Shadow variable wininfo-0.7/intl/bindtextdom.c:283:15: style: Local variable 'len' shadows outer variable [shadowVariable] wininfo-0.7/intl/bindtextdom.c:224:14: note: Shadowed declaration wininfo-0.7/intl/bindtextdom.c:283:15: note: Shadow variable wininfo-0.7/intl/loadmsgcat.c:940:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] wininfo-0.7/intl/localcharset.c:119:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBDIR [valueFlowBailoutIncompleteVar] wininfo-0.7/intl/l10nflist.c:341:12: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] wininfo-0.7/intl/localcharset.c:295:14: style: Condition 'locale==NULL' is always true [knownConditionTrueFalse] wininfo-0.7/intl/localcharset.c:286:24: note: Assignment 'locale=NULL', assigned value is 0 wininfo-0.7/intl/localcharset.c:295:14: note: Condition 'locale==NULL' is always true wininfo-0.7/intl/localcharset.c:181:5: error: Common realloc mistake: 'res_ptr' nulled but not freed upon failure [memleakOnRealloc] wininfo-0.7/intl/localealias.c:163:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOCALE_ALIAS_PATH [valueFlowBailoutIncompleteVar] wininfo-0.7/intl/ngettext.c:59:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] wininfo-0.7/intl/dcigettext.c:544:10: style: Obsolescent function 'getwd' called. It is recommended to use 'getcwd' instead. [prohibitedgetwdCalled] wininfo-0.7/intl/dcigettext.c:583:39: style: Redundant condition: The condition 'categoryvalue[0] != '\0'' is redundant since 'categoryvalue[0] == ':'' is sufficient. [redundantCondition] wininfo-0.7/intl/localealias.c:154:21: style: Variable 'retval' can be declared as pointer to const [constVariablePointer] wininfo-0.7/intl/localealias.c:254:13: style: Variable 'alias' can be declared as pointer to const [constVariablePointer] wininfo-0.7/intl/localealias.c:255:13: style: Variable 'value' can be declared as pointer to const [constVariablePointer] wininfo-0.7/intl/localealias.c:172:41: error: Uninitialized variable: &item.value [uninitvar] wininfo-0.7/intl/os2compat.c:60:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBDIR [valueFlowBailoutIncompleteVar] wininfo-0.7/intl/dcigettext.c:427:25: style:inconclusive: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] wininfo-0.7/intl/gettextP.h:207:46: note: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. wininfo-0.7/intl/dcigettext.c:427:25: note: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. wininfo-0.7/intl/dcigettext.c:427:49: style:inconclusive: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. [funcArgNamesDifferent] wininfo-0.7/intl/gettextP.h:208:18: note: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. wininfo-0.7/intl/dcigettext.c:427:49: note: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. wininfo-0.7/intl/dcigettext.c:427:69: style:inconclusive: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. [funcArgNamesDifferent] wininfo-0.7/intl/gettextP.h:208:40: note: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. wininfo-0.7/intl/dcigettext.c:427:69: note: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. wininfo-0.7/intl/dcigettext.c:428:10: style:inconclusive: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. [funcArgNamesDifferent] wininfo-0.7/intl/gettextP.h:209:10: note: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. wininfo-0.7/intl/dcigettext.c:428:10: note: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. wininfo-0.7/intl/dcigettext.c:428:36: style:inconclusive: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. [funcArgNamesDifferent] wininfo-0.7/intl/gettextP.h:209:38: note: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. wininfo-0.7/intl/dcigettext.c:428:36: note: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. wininfo-0.7/intl/dcigettext.c:428:43: style:inconclusive: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. [funcArgNamesDifferent] wininfo-0.7/intl/gettextP.h:210:10: note: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. wininfo-0.7/intl/dcigettext.c:428:43: note: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. wininfo-0.7/intl/dcigettext.c:533:13: style: Variable 'ret' can be declared as pointer to const [constVariablePointer] wininfo-0.7/intl/os2compat.c:61:19: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_libdir [nullPointerOutOfMemory] wininfo-0.7/intl/os2compat.c:60:43: note: Assuming allocation function fails wininfo-0.7/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 wininfo-0.7/intl/os2compat.c:61:19: note: Null pointer dereference wininfo-0.7/intl/dcigettext.c:224:9: style: struct member 'known_translation_t::domainname' is never used. [unusedStructMember] wininfo-0.7/intl/os2compat.c:75:19: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_localealiaspath [nullPointerOutOfMemory] wininfo-0.7/intl/os2compat.c:74:52: note: Assuming allocation function fails wininfo-0.7/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 wininfo-0.7/intl/os2compat.c:75:19: note: Null pointer dereference wininfo-0.7/intl/os2compat.c:89:19: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_localedir [nullPointerOutOfMemory] wininfo-0.7/intl/os2compat.c:88:46: note: Assuming allocation function fails wininfo-0.7/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 wininfo-0.7/intl/os2compat.c:89:19: note: Null pointer dereference wininfo-0.7/intl/os2compat.c:96:15: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_localedir [nullPointerOutOfMemory] wininfo-0.7/intl/os2compat.c:88:46: note: Assuming allocation function fails wininfo-0.7/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 wininfo-0.7/intl/os2compat.c:96:15: note: Null pointer dereference wininfo-0.7/intl/os2compat.c:62:33: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wininfo-0.7/intl/os2compat.c:60:43: note: Assuming allocation function fails wininfo-0.7/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 wininfo-0.7/intl/os2compat.c:62:33: note: Null pointer addition wininfo-0.7/intl/os2compat.c:76:42: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wininfo-0.7/intl/os2compat.c:74:52: note: Assuming allocation function fails wininfo-0.7/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 wininfo-0.7/intl/os2compat.c:76:42: note: Null pointer addition wininfo-0.7/intl/os2compat.c:90:36: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] wininfo-0.7/intl/os2compat.c:88:46: note: Assuming allocation function fails wininfo-0.7/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 wininfo-0.7/intl/os2compat.c:90:36: note: Null pointer addition wininfo-0.7/intl/os2compat.c:51:9: style: Variable 'root' can be declared as pointer to const [constVariablePointer] wininfo-0.7/intl/dcigettext.c:227:7: style: struct member 'known_translation_t::category' is never used. [unusedStructMember] wininfo-0.7/intl/dcigettext.c:230:7: style: struct member 'known_translation_t::counter' is never used. [unusedStructMember] wininfo-0.7/intl/dcigettext.c:233:27: style: struct member 'known_translation_t::domain' is never used. [unusedStructMember] wininfo-0.7/intl/dcigettext.c:236:15: style: struct member 'known_translation_t::translation' is never used. [unusedStructMember] wininfo-0.7/intl/dcigettext.c:237:10: style: struct member 'known_translation_t::translation_length' is never used. [unusedStructMember] wininfo-0.7/intl/dcigettext.c:240:8: style: struct member 'known_translation_t::msgid' is never used. [unusedStructMember] wininfo-0.7/intl/plural-exp.c:113:10: style: Variable 'endp' can be declared as pointer to const [constVariablePointer] plural.y:160:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable qmop [valueFlowBailoutIncompleteVar] plural.y:276:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable equal [valueFlowBailoutIncompleteVar] /usr/local/share/bison/bison.simple:517:36: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] /usr/local/share/bison/bison.simple:515:9: style: Variable 'yyss1' can be declared as pointer to const [constVariablePointer] wininfo-0.7/intl/xsize.h:60:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] wininfo-0.7/intl/printf-parse.c:146:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] wininfo-0.7/intl/loadmsgcat.c:982:2: error: Resource leak: fd [resourceLeak] wininfo-0.7/intl/loadmsgcat.c:975:12: style: The comparison 'data == (struct mo_file_header*)-1' is always true because 'data' and '(struct mo_file_header*)-1' represent the same value. [knownConditionTrueFalse] wininfo-0.7/intl/loadmsgcat.c:919:33: note: 'data' is assigned value '(struct mo_file_header*)-1' here. wininfo-0.7/intl/loadmsgcat.c:975:12: note: The comparison 'data == (struct mo_file_header*)-1' is always true because 'data' and '(struct mo_file_header*)-1' represent the same value. wininfo-0.7/intl/loadmsgcat.c:771:47: style:inconclusive: Function '_nl_init_domain_conv' argument 1 names different: declaration '__domain_file' definition 'domain_file'. [funcArgNamesDifferent] wininfo-0.7/intl/gettextP.h:166:59: note: Function '_nl_init_domain_conv' argument 1 names different: declaration '__domain_file' definition 'domain_file'. wininfo-0.7/intl/loadmsgcat.c:771:47: note: Function '_nl_init_domain_conv' argument 1 names different: declaration '__domain_file' definition 'domain_file'. wininfo-0.7/intl/loadmsgcat.c:772:31: style:inconclusive: Function '_nl_init_domain_conv' argument 2 names different: declaration '__domain' definition 'domain'. [funcArgNamesDifferent] wininfo-0.7/intl/gettextP.h:167:29: note: Function '_nl_init_domain_conv' argument 2 names different: declaration '__domain' definition 'domain'. wininfo-0.7/intl/loadmsgcat.c:772:31: note: Function '_nl_init_domain_conv' argument 2 names different: declaration '__domain' definition 'domain'. wininfo-0.7/intl/loadmsgcat.c:773:25: style:inconclusive: Function '_nl_init_domain_conv' argument 3 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] wininfo-0.7/intl/gettextP.h:168:23: note: Function '_nl_init_domain_conv' argument 3 names different: declaration '__domainbinding' definition 'domainbinding'. wininfo-0.7/intl/loadmsgcat.c:773:25: note: Function '_nl_init_domain_conv' argument 3 names different: declaration '__domainbinding' definition 'domainbinding'. wininfo-0.7/intl/loadmsgcat.c:889:45: style:inconclusive: Function '_nl_free_domain_conv' argument 1 names different: declaration '__domain' definition 'domain'. [funcArgNamesDifferent] wininfo-0.7/intl/gettextP.h:170:50: note: Function '_nl_free_domain_conv' argument 1 names different: declaration '__domain' definition 'domain'. wininfo-0.7/intl/loadmsgcat.c:889:45: note: Function '_nl_free_domain_conv' argument 1 names different: declaration '__domain' definition 'domain'. wininfo-0.7/intl/loadmsgcat.c:909:42: style:inconclusive: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. [funcArgNamesDifferent] wininfo-0.7/intl/gettextP.h:161:47: note: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. wininfo-0.7/intl/loadmsgcat.c:909:42: note: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. wininfo-0.7/intl/loadmsgcat.c:910:20: style:inconclusive: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] wininfo-0.7/intl/gettextP.h:162:25: note: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. wininfo-0.7/intl/loadmsgcat.c:910:20: note: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. wininfo-0.7/intl/vasnprintf.c:117:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] wininfo-0.7/intl/printf.c:116:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] wininfo-0.7/src/ewmhview.c:430:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_STRING [valueFlowBailoutIncompleteVar] wininfo-0.7/src/ewmhview.c:510:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_WINDOW [valueFlowBailoutIncompleteVar] wininfo-0.7/src/ewmhview.c:606:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AnyPropertyType [valueFlowBailoutIncompleteVar] wininfo-0.7/src/ewmhview.c:649:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AnyPropertyType [valueFlowBailoutIncompleteVar] wininfo-0.7/src/ewmhview.c:827:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AnyPropertyType [valueFlowBailoutIncompleteVar] wininfo-0.7/src/wininfo.c:82:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ClientMessage [valueFlowBailoutIncompleteVar] wininfo-0.7/src/wininfo.c:171:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] wininfo-0.7/src/wininfo.c:230:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] wininfo-0.7/src/wininfo.c:233: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] wininfo-0.7/src/wininfo.c:78:12: style: Local variable 'ev' shadows outer variable [shadowVariable] wininfo-0.7/src/wininfo.c:95:20: note: Shadowed declaration wininfo-0.7/src/wininfo.c:78:12: note: Shadow variable wininfo-0.7/src/wininfo.c:215:36: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'on_destroy' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wininfo-0.7/src/wininfo.c:236:5: note: You might need to cast the function pointer here wininfo-0.7/src/wininfo.c:215:36: note: Parameter 'widget' can be declared as pointer to const wininfo-0.7/src/wininfo.c:215:53: style: Parameter 'data' can be declared as pointer to const. However it seems that 'on_destroy' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wininfo-0.7/src/wininfo.c:236:5: note: You might need to cast the function pointer here wininfo-0.7/src/wininfo.c:215:53: note: Parameter 'data' can be declared as pointer to const wininfo-0.7/src/xresview.c:251:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AnyPropertyType [valueFlowBailoutIncompleteVar] wininfo-0.7/src/xresview.c:285:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable resource_base [valueFlowBailoutIncompleteVar] wininfo-0.7/src/xresview.c:119: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] wininfo-0.7/src/xresview.c:294:13: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] wininfo-0.7/src/xresview.c:117:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:117:5: note: Null pointer dereference wininfo-0.7/src/xresview.c:138:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:138:5: note: Null pointer dereference wininfo-0.7/src/xresview.c:139:29: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:139:29: note: Null pointer dereference wininfo-0.7/src/xresview.c:140:52: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:140:52: note: Null pointer dereference wininfo-0.7/src/xresview.c:146:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:146:5: note: Null pointer dereference wininfo-0.7/src/xresview.c:147:29: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:147:29: note: Null pointer dereference wininfo-0.7/src/xresview.c:148:52: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:148:52: note: Null pointer dereference wininfo-0.7/src/xresview.c:154:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:154:5: note: Null pointer dereference wininfo-0.7/src/xresview.c:155:29: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:155:29: note: Null pointer dereference wininfo-0.7/src/xresview.c:156:52: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:156:52: note: Null pointer dereference wininfo-0.7/src/xresview.c:162:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:162:5: note: Null pointer dereference wininfo-0.7/src/xresview.c:163:29: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:163:29: note: Null pointer dereference wininfo-0.7/src/xresview.c:164:52: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:164:52: note: Null pointer dereference wininfo-0.7/src/xresview.c:170:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:170:5: note: Null pointer dereference wininfo-0.7/src/xresview.c:171:29: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:171:29: note: Null pointer dereference wininfo-0.7/src/xresview.c:172:52: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:172:52: note: Null pointer dereference wininfo-0.7/src/xresview.c:178:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:178:5: note: Null pointer dereference wininfo-0.7/src/xresview.c:179:29: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:179:29: note: Null pointer dereference wininfo-0.7/src/xresview.c:180:52: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:180:52: note: Null pointer dereference wininfo-0.7/src/xresview.c:186:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:186:5: note: Null pointer dereference wininfo-0.7/src/xresview.c:187:29: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:187:29: note: Null pointer dereference wininfo-0.7/src/xresview.c:188:52: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:188:52: note: Null pointer dereference wininfo-0.7/src/xresview.c:194:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:194:5: note: Null pointer dereference wininfo-0.7/src/xresview.c:195:29: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:195:29: note: Null pointer dereference wininfo-0.7/src/xresview.c:196:52: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:196:52: note: Null pointer dereference wininfo-0.7/src/xresview.c:202:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:202:5: note: Null pointer dereference wininfo-0.7/src/xresview.c:203:29: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:203:29: note: Null pointer dereference wininfo-0.7/src/xresview.c:204:52: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:204:52: note: Null pointer dereference wininfo-0.7/src/xresview.c:210:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:210:5: note: Null pointer dereference wininfo-0.7/src/xresview.c:211:29: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:211:29: note: Null pointer dereference wininfo-0.7/src/xresview.c:212:52: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:212:52: note: Null pointer dereference wininfo-0.7/src/xresview.c:215:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rv [nullPointerOutOfMemory] wininfo-0.7/src/xresview.c:110:28: note: Assuming allocation function fails wininfo-0.7/src/xresview.c:110:28: note: Assignment 'rv=malloc(sizeof(struct xresview_t))', assigned value is 0 wininfo-0.7/src/xresview.c:215:5: note: Null pointer dereference wininfo-0.7/src/xresview.c:273:20: style: Variable 'prop_return' can be declared as pointer to const [constVariablePointer] wininfo-0.7/src/xresview.c:337:45: style: Parameter 'rv' can be declared as pointer to const [constParameterPointer] wininfo-0.7/src/xresview.c:273:32: style: Variable 'prop_return' is assigned a value that is never used. [unreadVariable] wininfo-0.7/src/xresview.c:269:10: style: Unused variable: type_return [unusedVariable] wininfo-0.7/src/xresview.c:270:9: style: Unused variable: format_return [unusedVariable] wininfo-0.7/src/xresview.c:271:19: style: Unused variable: bytes_after_return [unusedVariable] wininfo-0.7/src/xresview.c:272:19: style: Unused variable: nitems_return [unusedVariable] wininfo-0.7/src/xresview.c:273:20: style: Variable 'prop_return' is assigned a value that is never used. [unreadVariable] wininfo-0.7/src/xwinview.c:136:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KeyPressMask [valueFlowBailoutIncompleteVar] wininfo-0.7/src/xwinview.c:182:9: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] wininfo-0.7/src/xwinview.c:138:13: style: Condition 'seen' is always false [knownConditionTrueFalse] wininfo-0.7/src/xwinview.c:134:16: note: Assignment 'seen=0', assigned value is 0 wininfo-0.7/src/xwinview.c:138:13: note: Condition 'seen' is always false wininfo-0.7/src/xwinview.c:66:5: warning: If memory allocation fails, then there is a possible null pointer dereference: wv [nullPointerOutOfMemory] wininfo-0.7/src/xwinview.c:61:28: note: Assuming allocation function fails wininfo-0.7/src/xwinview.c:61:28: note: Assignment 'wv=malloc(sizeof(struct xwinview_t))', assigned value is 0 wininfo-0.7/src/xwinview.c:66:5: note: Null pointer dereference wininfo-0.7/src/xwinview.c:68:5: warning: If memory allocation fails, then there is a possible null pointer dereference: wv [nullPointerOutOfMemory] wininfo-0.7/src/xwinview.c:61:28: note: Assuming allocation function fails wininfo-0.7/src/xwinview.c:61:28: note: Assignment 'wv=malloc(sizeof(struct xwinview_t))', assigned value is 0 wininfo-0.7/src/xwinview.c:68:5: note: Null pointer dereference wininfo-0.7/src/xwinview.c:77:42: warning: If memory allocation fails, then there is a possible null pointer dereference: wv [nullPointerOutOfMemory] wininfo-0.7/src/xwinview.c:61:28: note: Assuming allocation function fails wininfo-0.7/src/xwinview.c:61:28: note: Assignment 'wv=malloc(sizeof(struct xwinview_t))', assigned value is 0 wininfo-0.7/src/xwinview.c:77:42: note: Null pointer dereference wininfo-0.7/src/xwinview.c:116:24: warning: If memory allocation fails, then there is a possible null pointer dereference: wv [nullPointerOutOfMemory] wininfo-0.7/src/xwinview.c:61:28: note: Assuming allocation function fails wininfo-0.7/src/xwinview.c:61:28: note: Assignment 'wv=malloc(sizeof(struct xwinview_t))', assigned value is 0 wininfo-0.7/src/xwinview.c:116:24: note: Null pointer dereference wininfo-0.7/src/xwinview.c:250:45: style: Parameter 'wv' can be declared as pointer to const [constParameterPointer] wininfo-0.7/src/xwinview.c:181:67: style: Variable 'seen' is assigned a value that is never used. [unreadVariable] wininfo-0.7/src/xwinview.c:182:14: style: Variable 'data' is assigned a value that is never used. [unreadVariable] wininfo-0.7/src/ewmhview.c:76: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] wininfo-0.7/src/ewmhview.c:654:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] wininfo-0.7/src/ewmhview.c:665:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] wininfo-0.7/src/ewmhview.c:797:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] wininfo-0.7/src/ewmhview.c:1021:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] wininfo-0.7/src/ewmhview.c:1032:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] wininfo-0.7/src/ewmhview.c:1043:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] wininfo-0.7/src/ewmhview.c:1054:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] wininfo-0.7/src/ewmhview.c:187:9: style: Variable 'row' is reassigned a value before the old one has been used. [redundantAssignment] wininfo-0.7/src/ewmhview.c:177:8: note: row is assigned wininfo-0.7/src/ewmhview.c:187:9: note: row is overwritten wininfo-0.7/src/ewmhview.c:1090:45: style: Parameter 'ev' can be declared as pointer to const [constParameterPointer] wininfo-0.7/intl/vasnprintf.c:744:12: style: Variable 'arg' can be declared as pointer to const [constVariablePointer] diff: head wininfo-0.7/intl/plural-exp.c:113:10: style: Variable 'endp' can be declared as pointer to const [constVariablePointer] DONE