2025-05-08 06:08 ftp://ftp.de.debian.org/debian/pool/main/s/sweep/sweep_0.9.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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: ebc80c0 (2025-05-07 18:59:31 +0200) count: 695 694 elapsed-time: 6.8 6.5 head-timing-info: old-timing-info: head results: sweep-0.9.3/intl/bindtextdom.c:226:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable domainname [valueFlowBailoutIncompleteVar] sweep-0.9.3/intl/dgettext.c:52:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] sweep-0.9.3/intl/eval-plural.h:52:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lor [valueFlowBailoutIncompleteVar] sweep-0.9.3/intl/dcigettext.c:545:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] sweep-0.9.3/intl/dngettext.c:53:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] sweep-0.9.3/intl/bindtextdom.c:252:12: style: Local variable 'len' shadows outer variable [shadowVariable] sweep-0.9.3/intl/bindtextdom.c:224:14: note: Shadowed declaration sweep-0.9.3/intl/bindtextdom.c:252:12: note: Shadow variable sweep-0.9.3/intl/bindtextdom.c:283:15: style: Local variable 'len' shadows outer variable [shadowVariable] sweep-0.9.3/intl/bindtextdom.c:224:14: note: Shadowed declaration sweep-0.9.3/intl/bindtextdom.c:283:15: note: Shadow variable sweep-0.9.3/intl/gettext.c:57:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] sweep-0.9.3/intl/finddomain.c:50:30: style:inconclusive: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. [funcArgNamesDifferent] sweep-0.9.3/intl/gettextP.h:160:54: note: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. sweep-0.9.3/intl/finddomain.c:50:30: note: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. sweep-0.9.3/intl/finddomain.c:50:45: style:inconclusive: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. [funcArgNamesDifferent] sweep-0.9.3/intl/gettextP.h:160:71: note: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. sweep-0.9.3/intl/finddomain.c:50:45: note: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. sweep-0.9.3/intl/finddomain.c:51:16: style:inconclusive: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] sweep-0.9.3/intl/gettextP.h:161:19: note: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. sweep-0.9.3/intl/finddomain.c:51:16: note: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. sweep-0.9.3/intl/finddomain.c:51:44: style:inconclusive: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] sweep-0.9.3/intl/gettextP.h:162:23: note: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. sweep-0.9.3/intl/finddomain.c:51:44: note: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. sweep-0.9.3/intl/dcigettext.c:544:10: style: Obsolescent function 'getwd' called. It is recommended to use 'getcwd' instead. [prohibitedgetwdCalled] sweep-0.9.3/intl/dcigettext.c:583:39: style: Redundant condition: The condition 'categoryvalue[0] != '\0'' is redundant since 'categoryvalue[0] == ':'' is sufficient. [redundantCondition] sweep-0.9.3/intl/dcigettext.c:427:25: style:inconclusive: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] sweep-0.9.3/intl/gettextP.h:210:46: note: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. sweep-0.9.3/intl/dcigettext.c:427:25: note: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. sweep-0.9.3/intl/dcigettext.c:427:49: style:inconclusive: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. [funcArgNamesDifferent] sweep-0.9.3/intl/gettextP.h:211:18: note: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. sweep-0.9.3/intl/dcigettext.c:427:49: note: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. sweep-0.9.3/intl/dcigettext.c:427:69: style:inconclusive: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. [funcArgNamesDifferent] sweep-0.9.3/intl/gettextP.h:211:40: note: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. sweep-0.9.3/intl/dcigettext.c:427:69: note: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. sweep-0.9.3/intl/dcigettext.c:428:10: style:inconclusive: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. [funcArgNamesDifferent] sweep-0.9.3/intl/gettextP.h:212:10: note: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. sweep-0.9.3/intl/dcigettext.c:428:10: note: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. sweep-0.9.3/intl/dcigettext.c:428:36: style:inconclusive: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. [funcArgNamesDifferent] sweep-0.9.3/intl/gettextP.h:212:38: note: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. sweep-0.9.3/intl/dcigettext.c:428:36: note: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. sweep-0.9.3/intl/dcigettext.c:428:43: style:inconclusive: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. [funcArgNamesDifferent] sweep-0.9.3/intl/gettextP.h:213:10: note: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. sweep-0.9.3/intl/dcigettext.c:428:43: note: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. sweep-0.9.3/intl/dcigettext.c:533:13: style: Variable 'ret' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/intl/dcigettext.c:224:9: style: struct member 'known_translation_t::domainname' is never used. [unusedStructMember] sweep-0.9.3/intl/dcigettext.c:227:7: style: struct member 'known_translation_t::category' is never used. [unusedStructMember] sweep-0.9.3/intl/dcigettext.c:230:7: style: struct member 'known_translation_t::counter' is never used. [unusedStructMember] sweep-0.9.3/intl/dcigettext.c:233:27: style: struct member 'known_translation_t::domain' is never used. [unusedStructMember] sweep-0.9.3/intl/dcigettext.c:236:15: style: struct member 'known_translation_t::translation' is never used. [unusedStructMember] sweep-0.9.3/intl/dcigettext.c:237:10: style: struct member 'known_translation_t::translation_length' is never used. [unusedStructMember] sweep-0.9.3/intl/dcigettext.c:240:8: style: struct member 'known_translation_t::msgid' is never used. [unusedStructMember] sweep-0.9.3/intl/localcharset.c:127:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBDIR [valueFlowBailoutIncompleteVar] sweep-0.9.3/intl/loadmsgcat.c:940:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sweep-0.9.3/intl/localcharset.c:306:14: style: Condition 'locale==NULL' is always true [knownConditionTrueFalse] sweep-0.9.3/intl/localcharset.c:297:24: note: Assignment 'locale=NULL', assigned value is 0 sweep-0.9.3/intl/localcharset.c:306:14: note: Condition 'locale==NULL' is always true sweep-0.9.3/intl/localealias.c:163:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOCALE_ALIAS_PATH [valueFlowBailoutIncompleteVar] sweep-0.9.3/intl/l10nflist.c:341:12: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/intl/localealias.c:154:21: style: Variable 'retval' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/intl/localealias.c:254:13: style: Variable 'alias' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/intl/localealias.c:255:13: style: Variable 'value' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/intl/localealias.c:172:41: error: Uninitialized variable: &item.value [uninitvar] sweep-0.9.3/intl/ngettext.c:59:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] sweep-0.9.3/intl/os2compat.c:60:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBDIR [valueFlowBailoutIncompleteVar] sweep-0.9.3/intl/os2compat.c:61:19: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_libdir [nullPointerOutOfMemory] sweep-0.9.3/intl/os2compat.c:60:43: note: Assuming allocation function fails sweep-0.9.3/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 sweep-0.9.3/intl/os2compat.c:61:19: note: Null pointer dereference sweep-0.9.3/intl/os2compat.c:75:19: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_localealiaspath [nullPointerOutOfMemory] sweep-0.9.3/intl/os2compat.c:74:52: note: Assuming allocation function fails sweep-0.9.3/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 sweep-0.9.3/intl/os2compat.c:75:19: note: Null pointer dereference sweep-0.9.3/intl/os2compat.c:89:19: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_localedir [nullPointerOutOfMemory] sweep-0.9.3/intl/os2compat.c:88:46: note: Assuming allocation function fails sweep-0.9.3/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 sweep-0.9.3/intl/os2compat.c:89:19: note: Null pointer dereference sweep-0.9.3/intl/os2compat.c:96:15: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_localedir [nullPointerOutOfMemory] sweep-0.9.3/intl/os2compat.c:88:46: note: Assuming allocation function fails sweep-0.9.3/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 sweep-0.9.3/intl/os2compat.c:96:15: note: Null pointer dereference sweep-0.9.3/intl/os2compat.c:62:33: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] sweep-0.9.3/intl/os2compat.c:60:43: note: Assuming allocation function fails sweep-0.9.3/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 sweep-0.9.3/intl/os2compat.c:62:33: note: Null pointer addition sweep-0.9.3/intl/os2compat.c:76:42: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] sweep-0.9.3/intl/os2compat.c:74:52: note: Assuming allocation function fails sweep-0.9.3/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 sweep-0.9.3/intl/os2compat.c:76:42: note: Null pointer addition sweep-0.9.3/intl/os2compat.c:90:36: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] sweep-0.9.3/intl/os2compat.c:88:46: note: Assuming allocation function fails sweep-0.9.3/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 sweep-0.9.3/intl/os2compat.c:90:36: note: Null pointer addition sweep-0.9.3/intl/os2compat.c:51:9: style: Variable 'root' 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] /home/haible/gnu/arch/linuxlibc6/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] /home/haible/gnu/arch/linuxlibc6/share/bison/bison.simple:515:9: style: Variable 'yyss1' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/intl/xsize.h:60:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] sweep-0.9.3/intl/printf-parse.c:146:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] sweep-0.9.3/intl/vasnprintf.c:122:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sweep-0.9.3/intl/printf.c:116:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sweep-0.9.3/intl/loadmsgcat.c:982:2: error: Resource leak: fd [resourceLeak] sweep-0.9.3/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] sweep-0.9.3/intl/loadmsgcat.c:919:33: note: 'data' is assigned value '(struct mo_file_header*)-1' here. sweep-0.9.3/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. sweep-0.9.3/intl/loadmsgcat.c:771:47: style:inconclusive: Function '_nl_init_domain_conv' argument 1 names different: declaration '__domain_file' definition 'domain_file'. [funcArgNamesDifferent] sweep-0.9.3/intl/gettextP.h:169:59: note: Function '_nl_init_domain_conv' argument 1 names different: declaration '__domain_file' definition 'domain_file'. sweep-0.9.3/intl/loadmsgcat.c:771:47: note: Function '_nl_init_domain_conv' argument 1 names different: declaration '__domain_file' definition 'domain_file'. sweep-0.9.3/intl/loadmsgcat.c:772:31: style:inconclusive: Function '_nl_init_domain_conv' argument 2 names different: declaration '__domain' definition 'domain'. [funcArgNamesDifferent] sweep-0.9.3/intl/gettextP.h:170:29: note: Function '_nl_init_domain_conv' argument 2 names different: declaration '__domain' definition 'domain'. sweep-0.9.3/intl/loadmsgcat.c:772:31: note: Function '_nl_init_domain_conv' argument 2 names different: declaration '__domain' definition 'domain'. sweep-0.9.3/intl/loadmsgcat.c:773:25: style:inconclusive: Function '_nl_init_domain_conv' argument 3 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] sweep-0.9.3/intl/gettextP.h:171:23: note: Function '_nl_init_domain_conv' argument 3 names different: declaration '__domainbinding' definition 'domainbinding'. sweep-0.9.3/intl/loadmsgcat.c:773:25: note: Function '_nl_init_domain_conv' argument 3 names different: declaration '__domainbinding' definition 'domainbinding'. sweep-0.9.3/intl/loadmsgcat.c:889:45: style:inconclusive: Function '_nl_free_domain_conv' argument 1 names different: declaration '__domain' definition 'domain'. [funcArgNamesDifferent] sweep-0.9.3/intl/gettextP.h:173:50: note: Function '_nl_free_domain_conv' argument 1 names different: declaration '__domain' definition 'domain'. sweep-0.9.3/intl/loadmsgcat.c:889:45: note: Function '_nl_free_domain_conv' argument 1 names different: declaration '__domain' definition 'domain'. sweep-0.9.3/intl/loadmsgcat.c:909:42: style:inconclusive: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. [funcArgNamesDifferent] sweep-0.9.3/intl/gettextP.h:164:47: note: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. sweep-0.9.3/intl/loadmsgcat.c:909:42: note: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. sweep-0.9.3/intl/loadmsgcat.c:910:20: style:inconclusive: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] sweep-0.9.3/intl/gettextP.h:165:25: note: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. sweep-0.9.3/intl/loadmsgcat.c:910:20: note: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. sweep-0.9.3/plugins/byenergy/byenergy.c:98:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable b [valueFlowBailoutIncompleteVar] sweep-0.9.3/plugins/byenergy/byenergy.c:108:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable b [valueFlowBailoutIncompleteVar] sweep-0.9.3/plugins/echo/echo.c:73:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable f [valueFlowBailoutIncompleteVar] sweep-0.9.3/plugins/echo/echo.c:81:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable f [valueFlowBailoutIncompleteVar] sweep-0.9.3/plugins/echo/echo.c:85:16: style: Variable 'd' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/plugins/echo/echo.c:91:13: portability: 'data' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sweep-0.9.3/plugins/example/example.c:85:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable b [valueFlowBailoutIncompleteVar] sweep-0.9.3/plugins/example/example.c:94:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable b [valueFlowBailoutIncompleteVar] sweep-0.9.3/plugins/byenergy/byenergy.c:141:10: style: Variable 'length' is reassigned a value before the old one has been used. [redundantAssignment] sweep-0.9.3/plugins/byenergy/byenergy.c:126:10: note: length is assigned sweep-0.9.3/plugins/byenergy/byenergy.c:141:10: note: length is overwritten sweep-0.9.3/plugins/byenergy/byenergy.c:163:10: style: Variable 'factor' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/plugins/example/example.c:91:38: style: Parameter 'data' can be declared as pointer to const. However it seems that 'example_filter_region_func' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sweep-0.9.3/plugins/example/example.c:123:29: note: You might need to cast the function pointer here sweep-0.9.3/plugins/example/example.c:91:38: note: Parameter 'data' can be declared as pointer to const sweep-0.9.3/plugins/example/example.c:91:56: style: Parameter 'format' can be declared as pointer to const. However it seems that 'example_filter_region_func' is a callback function, if 'format' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sweep-0.9.3/plugins/example/example.c:123:29: note: You might need to cast the function pointer here sweep-0.9.3/plugins/example/example.c:91:56: note: Parameter 'format' can be declared as pointer to const sweep-0.9.3/plugins/example/example.c:92:36: style: Parameter 'custom_data' can be declared as pointer to const. However it seems that 'example_filter_region_func' is a callback function, if 'custom_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sweep-0.9.3/plugins/example/example.c:123:29: note: You might need to cast the function pointer here sweep-0.9.3/plugins/example/example.c:92:36: note: Parameter 'custom_data' can be declared as pointer to const sweep-0.9.3/plugins/example/example.c:95:11: style: Variable 'beans' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/plugins/fade/fade.c:102:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_CANCEL [valueFlowBailoutIncompleteVar] sweep-0.9.3/plugins/fade/fade.c:36:12: style: Variable 'sel' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/plugins/fade/fade.c:38:17: style: Variable 'factor' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/plugins/normalise/normalise.c:63:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_CANCEL [valueFlowBailoutIncompleteVar] sweep-0.9.3/plugins/reverse/reverse.c:67:15: debug: Scope::checkVariable found variable 'e' with varid 0. [varid0] sweep-0.9.3/plugins/reverse/reverse.c:67:18: debug: Scope::checkVariable found variable 't' with varid 0. [varid0] sweep-0.9.3/plugins/reverse/reverse.c:67:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable e [valueFlowBailoutIncompleteVar] sweep-0.9.3/plugins/reverse/reverse.c:82:7: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] sweep-0.9.3/plugins/reverse/reverse.c:90:11: portability: 'd' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sweep-0.9.3/plugins/reverse/reverse.c:107:6: portability: 'd' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sweep-0.9.3/plugins/normalise/normalise.c:36:12: style: Variable 'sel' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/plugins/ladspa/ladspameta.c:105:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_TYPE_BOOL [valueFlowBailoutIncompleteVar] sweep-0.9.3/plugins/ladspa/ladspameta.c:118:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SW_RANGE_LOWER_BOUND_VALID [valueFlowBailoutIncompleteVar] sweep-0.9.3/plugins/ladspa/ladspameta.c:453:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] sweep-0.9.3/plugins/ladspa/ladspameta.c:696:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sw_param_spec [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/about_dialog.c:66:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/about_dialog.c:80: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] sweep-0.9.3/src/about_dialog.c:45:29: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'sweep_homepage' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sweep-0.9.3/src/about_dialog.c:127:5: note: You might need to cast the function pointer here sweep-0.9.3/src/about_dialog.c:45:29: note: Parameter 'widget' can be declared as pointer to const sweep-0.9.3/src/about_dialog.c:45:46: style: Parameter 'data' can be declared as pointer to const. However it seems that 'sweep_homepage' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sweep-0.9.3/src/about_dialog.c:127:5: note: You might need to cast the function pointer here sweep-0.9.3/src/about_dialog.c:45:46: note: Parameter 'data' can be declared as pointer to const sweep-0.9.3/src/callbacks.c:715:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_MATCH_DATA [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/callbacks.c:731:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_MATCH_DATA [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/callbacks.c:751:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_MATCH_DATA [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/channelops.c:89:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_CANCEL [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/channelops.c:208:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_MOUSE [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/channelops.c:295:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_CANCEL [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/channelops.c:391:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_CANCEL [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/channelops.c:485:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_CANCEL [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/channelops.c:517:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_BUSY [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/channelops.c:590:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_CANCEL [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/channelops.c:693:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_MOUSE [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/callbacks.c:1009:3: error: Mismatching allocation and deallocation: saved [mismatchAllocDealloc] sweep-0.9.3/src/callbacks.c:1003:11: note: Mismatching allocation and deallocation: saved sweep-0.9.3/src/callbacks.c:1009:3: note: Mismatching allocation and deallocation: saved sweep-0.9.3/src/callbacks.c:172:22: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/callbacks.c:172:39: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/callbacks.c:179:26: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/callbacks.c:179:43: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/callbacks.c:363:31: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/callbacks.c:363:48: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/cursors.c:102:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_XTERM [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/channelops.c:265:16: style: Variable 'old_d' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/channelops.c:360:16: style: Variable 'old_d' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/db_ruler.c:105:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_RULER [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/db_ruler.c:160:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dragging [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/db_ruler.c:174:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_REALIZED [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/db_ruler.c:242:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dragging [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/db_ruler.c:281:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable y [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/db_ruler.c:294:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dragging [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/db_ruler.c:305:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SCROLL_UP [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/db_ruler.c:327:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dragging [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/db_ruler.c:364:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/db_ruler.c:518:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/db_slider.c:65:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_FLOAT [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/db_slider.c:94:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_VBOX [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/db_slider.c:143:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/db_slider.c:169:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable db_label [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/db_slider.c:196:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable db_label [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/db_slider.c:188: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] sweep-0.9.3/src/db_slider.c:54:19: style: Variable 'object_class' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/db_slider.c:70:29: style: Parameter 'slider' can be declared as pointer to const. However it seems that 'db_slider_init' is a callback function, if 'slider' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sweep-0.9.3/src/db_slider.c:90:22: note: You might need to cast the function pointer here sweep-0.9.3/src/db_slider.c:70:29: note: Parameter 'slider' can be declared as pointer to const sweep-0.9.3/src/db_slider.c:178:46: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/plugins/ladspa/ladspameta.c:224:7: warning: Return value of function exp() is not used. [ignoredReturnValue] sweep-0.9.3/plugins/ladspa/ladspameta.c:230:7: warning: Return value of function exp() is not used. [ignoredReturnValue] sweep-0.9.3/plugins/ladspa/ladspameta.c:749:20: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] sweep-0.9.3/src/db_slider.c:56:16: style: Variable 'object_class' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/plugins/ladspa/ladspameta.c:775:24: warning: If memory allocation fails, then there is a possible null pointer dereference: ladspa_path [nullPointerOutOfMemory] sweep-0.9.3/plugins/ladspa/ladspameta.c:772:36: note: Assuming allocation function fails sweep-0.9.3/plugins/ladspa/ladspameta.c:772:28: note: Assignment 'ladspa_path=saved_lp=strdup(default_ladspa_path)', assigned value is 0 sweep-0.9.3/plugins/ladspa/ladspameta.c:775:24: note: Null pointer dereference sweep-0.9.3/plugins/ladspa/ladspameta.c:190:30: style: Parameter 'format' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/plugins/ladspa/ladspameta.c:293:19: style: Variable 'param_specs' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/plugins/ladspa/ladspameta.c:301:12: style: Variable 'sel' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/plugins/ladspa/ladspameta.c:656:32: style: Parameter 'dir' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/plugins/ladspa/ladspameta.c:656:45: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/plugins/ladspa/ladspameta.c:740:10: style: Variable 'name' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/driver.c:370:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_MOUSE [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/db_ruler.c:471:27: warning: Invalid log10() argument nr 1. The value is 0 but the valid values are '4.94066e-324:'. [invalidFunctionArg] sweep-0.9.3/src/db_ruler.c:470:40: note: Assignment 'a_cur=0.0', assigned value is 0.0 sweep-0.9.3/src/db_ruler.c:471:27: note: Invalid argument sweep-0.9.3/src/db_ruler.c:527:21: style: Condition 'bs_width>0' is always true [knownConditionTrueFalse] sweep-0.9.3/src/db_ruler.c:525:18: note: Assignment 'bs_width=4', assigned value is 4 sweep-0.9.3/src/db_ruler.c:527:21: note: Condition 'bs_width>0' is always true sweep-0.9.3/src/db_ruler.c:527:40: style: Condition 'bs_height>0' is always true [knownConditionTrueFalse] sweep-0.9.3/src/db_ruler.c:524:19: note: Assignment 'bs_height=7', assigned value is 7 sweep-0.9.3/src/db_ruler.c:527:40: note: Condition 'bs_height>0' is always true sweep-0.9.3/src/driver.c:405: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] sweep-0.9.3/src/driver.c:425: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] sweep-0.9.3/src/driver.c:435: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] sweep-0.9.3/src/driver.c:474: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] sweep-0.9.3/src/driver.c:499: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] sweep-0.9.3/src/driver.c:517: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] sweep-0.9.3/src/driver.c:555: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] sweep-0.9.3/src/driver.c:560: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] sweep-0.9.3/src/driver.c:602: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] sweep-0.9.3/src/driver.c:618: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] sweep-0.9.3/src/db_ruler.c:114:19: style: Variable 'object_class' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/db_ruler.c:224:60: style: Parameter 'event' can be declared as pointer to const. However it seems that 'db_ruler_motion_notify' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sweep-0.9.3/src/db_ruler.c:124:39: note: You might need to cast the function pointer here sweep-0.9.3/src/db_ruler.c:224:60: note: Parameter 'event' can be declared as pointer to const sweep-0.9.3/src/db_ruler.c:300:59: style: Parameter 'event' can be declared as pointer to const. However it seems that 'db_ruler_scroll_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sweep-0.9.3/src/db_ruler.c:127:32: note: You might need to cast the function pointer here sweep-0.9.3/src/db_ruler.c:300:59: note: Parameter 'event' can be declared as pointer to const sweep-0.9.3/src/db_ruler.c:336:15: style: Variable 'bg_gc' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/db_ruler.c:118:16: style: Variable 'object_class' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/db_ruler.c:520:18: style: Variable 'ythickness' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/db_ruler.c:538:14: style: Variable 'increment' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/driver.c:159:15: style: Local variable 'dialog' shadows outer variable [shadowVariable] sweep-0.9.3/src/driver.c:139:20: note: Shadowed declaration sweep-0.9.3/src/driver.c:159:15: note: Shadow variable sweep-0.9.3/src/driver.c:160:19: style: Local variable 'adj' shadows outer variable [shadowVariable] sweep-0.9.3/src/driver.c:142:20: note: Shadowed declaration sweep-0.9.3/src/driver.c:160:19: note: Shadow variable sweep-0.9.3/src/driver.c:188:15: style: Local variable 'dialog' shadows outer variable [shadowVariable] sweep-0.9.3/src/driver.c:139:20: note: Shadowed declaration sweep-0.9.3/src/driver.c:188:15: note: Shadow variable sweep-0.9.3/src/driver.c:197:15: style: Local variable 'dialog' shadows outer variable [shadowVariable] sweep-0.9.3/src/driver.c:139:20: note: Shadowed declaration sweep-0.9.3/src/driver.c:197:15: note: Shadow variable sweep-0.9.3/src/driver.c:239:19: style: Local variable 'adj' shadows outer variable [shadowVariable] sweep-0.9.3/src/driver.c:142:20: note: Shadowed declaration sweep-0.9.3/src/driver.c:239:19: note: Shadow variable sweep-0.9.3/src/driver.c:248:15: style: Local variable 'dialog' shadows outer variable [shadowVariable] sweep-0.9.3/src/driver.c:139:20: note: Shadowed declaration sweep-0.9.3/src/driver.c:248:15: note: Shadow variable sweep-0.9.3/src/driver.c:268:15: style: Local variable 'dialog' shadows outer variable [shadowVariable] sweep-0.9.3/src/driver.c:139:20: note: Shadowed declaration sweep-0.9.3/src/driver.c:268:15: note: Shadow variable sweep-0.9.3/src/driver.c:285:15: style: Local variable 'dialog' shadows outer variable [shadowVariable] sweep-0.9.3/src/driver.c:139:20: note: Shadowed declaration sweep-0.9.3/src/driver.c:285:15: note: Shadow variable sweep-0.9.3/src/driver.c:304:15: style: Local variable 'dialog' shadows outer variable [shadowVariable] sweep-0.9.3/src/driver.c:139:20: note: Shadowed declaration sweep-0.9.3/src/driver.c:304:15: note: Shadow variable sweep-0.9.3/src/driver.c:315:15: style: Local variable 'dialog' shadows outer variable [shadowVariable] sweep-0.9.3/src/driver.c:139:20: note: Shadowed declaration sweep-0.9.3/src/driver.c:315:15: note: Shadow variable sweep-0.9.3/src/driver.c:323:15: style: Local variable 'dialog' shadows outer variable [shadowVariable] sweep-0.9.3/src/driver.c:139:20: note: Shadowed declaration sweep-0.9.3/src/driver.c:323:15: note: Shadow variable sweep-0.9.3/src/driver.c:120:9: style: Variable 'use_monitor' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/driver.c:160:19: style: Variable 'adj' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/driver.c:199:11: style: Variable 'main_devname' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/driver.c:199:27: style: Variable 'monitor_devname' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/driver.c:249:23: style: Variable 'monitor_dev' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/driver.c:269:10: style: Variable 'main_dev' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/driver.c:269:22: style: Variable 'monitor_dev' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/driver.c:286:10: style: Variable 'name' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/edit.c:634:16: debug: Scope::checkVariable found variable 'd' with varid 0. [varid0] sweep-0.9.3/src/file_dialogs.c:155:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/file_dialogs.c:256:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/file_dialogs.c:291:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_OPEN [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/file_dialogs.c:343:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/file_dialogs.c:432:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SW_DIR_LEN [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/file_dialogs.c:709:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_SAVE [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/edit.c:148:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sw_edit_region [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/edit.c:187:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sw_edit_buffer [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/edit.c:572:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FRAMECOUNT_MAX [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/edit.c:634:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable d [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/edit.c:861:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_CANCEL [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/edit.c:1146:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_CANCEL [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/edit.c:1236:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_CANCEL [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/edit.c:1335:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_BUSY [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/edit.c:1379:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_BUSY [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/edit.c:1423:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_BUSY [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/edit.c:1475:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_BUSY [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/edit.c:1557:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_BUSY [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/edit.c:1629:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_BUSY [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/edit.c:1713:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_BUSY [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/format.c:32:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sw_format [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/format.c:40:26: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/format.c:50:27: style: Parameter 'f1' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/format.c:50:43: style: Parameter 'f2' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/file_dialogs.c:152:13: style: Obsolete function 'g_dirname' called. It is recommended to use 'g_path_get_dirname' instead. [prohibitedg_dirnameCalled] sweep-0.9.3/src/file_dialogs.c:372:6: style: Obsolete function 'g_basename' called. It is recommended to use 'g_path_get_basename' instead. [prohibitedg_basenameCalled] sweep-0.9.3/src/file_dialogs.c:432:10: style: g_strncasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strncasecmpCalled] sweep-0.9.3/src/file_dialogs.c:472:7: style: g_strncasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strncasecmpCalled] sweep-0.9.3/src/file_dialogs.c:545:53: style: Obsolete function 'g_basename' called. It is recommended to use 'g_path_get_basename' instead. [prohibitedg_basenameCalled] sweep-0.9.3/src/file_dialogs.c:587:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] sweep-0.9.3/src/file_dialogs.c:626:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] sweep-0.9.3/src/file_dialogs.c:719: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] sweep-0.9.3/src/file_dialogs.c:725:10: 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] sweep-0.9.3/src/file_dialogs.c:757:31: style: Obsolete function 'g_dirname' called. It is recommended to use 'g_path_get_dirname' instead. [prohibitedg_dirnameCalled] sweep-0.9.3/src/file_dialogs.c:824:57: style: Obsolete function 'g_basename' called. It is recommended to use 'g_path_get_basename' instead. [prohibitedg_basenameCalled] sweep-0.9.3/src/file_dialogs.c:199:18: style: Condition 'new_sample==NULL' is always true [knownConditionTrueFalse] sweep-0.9.3/src/file_dialogs.c:193:28: note: Assignment 'new_sample=NULL', assigned value is 0 sweep-0.9.3/src/file_dialogs.c:199:18: note: Condition 'new_sample==NULL' is always true sweep-0.9.3/src/file_dialogs.c:227:14: style: Condition 'sample==NULL' is always true [knownConditionTrueFalse] sweep-0.9.3/src/file_dialogs.c:221:24: note: Assignment 'sample=NULL', assigned value is 0 sweep-0.9.3/src/file_dialogs.c:227:14: note: Condition 'sample==NULL' is always true sweep-0.9.3/src/file_dialogs.c:752:15: error: Allocation with g_path_get_dirname, strcmp doesn't release it. [leakNoVarFunctionCall] sweep-0.9.3/src/file_dialogs.c:779:10: style: Variable 'retval' is reassigned a value before the old one has been used. [redundantAssignment] sweep-0.9.3/src/file_dialogs.c:769:13: note: retval is assigned sweep-0.9.3/src/file_dialogs.c:779:10: note: retval is overwritten sweep-0.9.3/src/file_dialogs.c:781:12: style: Variable 'filename' is reassigned a value before the old one has been used. [redundantAssignment] sweep-0.9.3/src/file_dialogs.c:773:18: note: filename is assigned sweep-0.9.3/src/file_dialogs.c:781:12: note: filename is overwritten sweep-0.9.3/src/file_dialogs.c:142:26: style: Parameter 'pathname' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/file_dialogs.c:393:47: style: Parameter 'pathname' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/file_dialogs.c:396:11: style: Variable 'ext' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/file_dialogs.c:403:25: style: Variable 'desc' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/interface.c:121:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sweep_app_icon_xpm [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/interface.c:158:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GdkColor [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/interface.c:191:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable red [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/interface.c:530:1: error: Memory leak: gclosure [memleak] sweep-0.9.3/src/interface.c:74:33: style:inconclusive: Function 'recent_manager_add_item' argument 1 names different: declaration 'uri' definition 'path'. [funcArgNamesDifferent] sweep-0.9.3/src/interface.h:42:33: note: Function 'recent_manager_add_item' argument 1 names different: declaration 'uri' definition 'path'. sweep-0.9.3/src/interface.c:74:33: note: Function 'recent_manager_add_item' argument 1 names different: declaration 'uri' definition 'path'. sweep-0.9.3/src/interface.c:74:33: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/interface.c:176:26: style: Parameter 'fg' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/interface.c:176:41: style: Parameter 'bg' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/interface.c:207:14: style: Variable 'color_green_grey' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/interface.c:209:14: style: Variable 'color_dark_grey' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/head.c:174:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_MATCH_DATA [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/head.c:189:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_MATCH_DATA [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/head.c:205:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_MATCH_DATA [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/head.c:220:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_MATCH_DATA [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/head.c:418:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable upleft_xpm [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/interface.c:217:20: style: Variable 'color_green_grey' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/interface.c:220:19: style: Variable 'color_dark_grey' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/levelmeter.c:83:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_REALIZED [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/levelmeter.c:151:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/levelmeter.c:261:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_WIDGET [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/levelmeter.c:268:22: style:inconclusive: Function 'levelmeter_new' argument 1 names different: declaration 'state' definition 'level'. [funcArgNamesDifferent] sweep-0.9.3/src/levelmeter.h:48:33: note: Function 'levelmeter_new' argument 1 names different: declaration 'state' definition 'level'. sweep-0.9.3/src/levelmeter.c:268:22: note: Function 'levelmeter_new' argument 1 names different: declaration 'state' definition 'level'. sweep-0.9.3/src/levelmeter.c:50:35: style: Parameter 'levelmeter' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/levelmeter.c:76:15: style: Variable 'levelmeter' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/levelmeter.c:124:15: style: Variable 'levelmeter' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/levelmeter.c:181:15: style: Variable 'levelmeter' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/levelmeter.c:84:14: style: Variable 'levelmeter' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/levelmeter.c:132:16: style: Variable 'levelmeter' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/levelmeter.c:186:14: style: Variable 'levelmeter' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/edit.c:50:44: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/edit.c:268:38: style: Parameter 'eb' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/edit.c:271:20: style: Variable 'er' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/edit.c:284:37: style: Parameter 'eb' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/edit.c:287:20: style: Variable 'er' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/edit.c:349:48: style: Parameter 'eb' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/edit.c:352:20: style: Variable 'er' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/edit.c:719:61: style: Parameter 'eb' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/edit.c:724:20: style: Variable 'er1' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/edit.c:724:27: style: Variable 'er2' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/edit.c:806:20: style: Variable 'er' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/edit.c:887:20: style: Variable 'sel2' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/edit.c:1008:20: style: Variable 'er' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/edit.c:1077:50: style: Parameter 'eb' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/edit.c:1277:34: style: Parameter 'inst' can be declared as pointer to const. However it seems that 'do_copy_thread' is a callback function, if 'inst' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sweep-0.9.3/src/edit.c:1297:18: note: You might need to cast the function pointer here sweep-0.9.3/src/edit.c:1277:34: note: Parameter 'inst' can be declared as pointer to const sweep-0.9.3/src/edit.c:169:52: portability: 'data0' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sweep-0.9.3/src/edit.c:523:7: portability: 'd' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sweep-0.9.3/src/edit.c:559:7: portability: 'd' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sweep-0.9.3/src/edit.c:673:8: portability: 'di' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sweep-0.9.3/src/edit.c:759:29: portability: 'd' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sweep-0.9.3/src/edit.c:767:28: portability: 'd' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sweep-0.9.3/src/edit.c:775:28: portability: 'd' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sweep-0.9.3/src/edit.c:781:28: portability: 'd' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sweep-0.9.3/src/edit.c:785:28: portability: 'd' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sweep-0.9.3/src/edit.c:793:28: portability: 'd' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sweep-0.9.3/src/edit.c:933:32: portability: 'd' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sweep-0.9.3/src/edit.c:986:26: portability: 'd' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sweep-0.9.3/src/edit.c:1024:7: portability: 'd' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sweep-0.9.3/src/edit.c:1035:7: portability: 'd' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sweep-0.9.3/src/edit.c:1043:7: portability: 'd' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] sweep-0.9.3/src/main.c:188:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/head.c:390: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] sweep-0.9.3/src/head.c:410:17: 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] sweep-0.9.3/src/head.c:414: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] sweep-0.9.3/src/head.c:432: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] sweep-0.9.3/src/head.c:444:17: 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] sweep-0.9.3/src/head.c:481:17: 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] sweep-0.9.3/src/head.c:510:17: 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] sweep-0.9.3/src/head.c:171:13: style: Variable 'head' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/head.c:186:13: style: Variable 'head' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/head.c:202:13: style: Variable 'head' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/head.c:217:13: style: Variable 'head' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/head.c:246:41: style: Parameter 'hctl' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/head.c:804:55: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/head.c:807:15: style: Variable 'sample' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/head.c:848:15: style: Variable 'sample' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/head.c:853:12: style: Variable 'sel' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/main.c:65:17: style: Obsolete function 'g_dirname' called. It is recommended to use 'g_path_get_dirname' instead. [prohibitedg_dirnameCalled] sweep-0.9.3/src/main.c:63:11: style: Variable 'pathname' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/paste_dialogs.c:102:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_IDLE [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/paste_dialogs.c:145:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_IDLE [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/paste_dialogs.c:179:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_IDLE [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/paste_dialogs.c:191:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_IDLE [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/paste_dialogs.c:236:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_MOUSE [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/paste_dialogs.c:251:10: 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] sweep-0.9.3/src/paste_dialogs.c:264: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] sweep-0.9.3/src/paste_dialogs.c:268:11: 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] sweep-0.9.3/src/paste_dialogs.c:296:7: style: Obsolete function 'g_basename' called. It is recommended to use 'g_path_get_basename' instead. [prohibitedg_basenameCalled] sweep-0.9.3/src/paste_dialogs.c:303: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] sweep-0.9.3/src/paste_dialogs.c:307:11: 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] sweep-0.9.3/src/paste_dialogs.c:349:10: 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] sweep-0.9.3/src/param.c:78:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sw_param [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/param.c:86:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sw_param [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/param.c:160:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SW_PARAM_CONSTRAINED_NOT [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/param.c:274:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable b [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/param.c:395:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_TYPE_BOOL [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/param.c:629:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbox [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/plugin.c:58:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MODULE_BIND_LAZY [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/plugin.c:103:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_PLUGIN_DIR [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/plugin.c:116:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_PLUGIN_DIR [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/plugin.c:101:20: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] sweep-0.9.3/src/plugin.c:92:10: style: Variable 'name' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/plugin.c:102:10: style: Variable 'name' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/preferences.c:58:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/preferences.c:191:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TDB_REPLACE [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/preferences.c:243:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TDB_REPLACE [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/preferences.c:302:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TDB_REPLACE [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/preferences.c:333:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TDB_REPLACE [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/preferences.c:218:3: style: Variable '*(long*)val_data.dptr' is assigned an expression that holds the same value. [redundantAssignment] sweep-0.9.3/src/preferences.c:215:7: note: val is assigned 'nval' here. sweep-0.9.3/src/preferences.c:218:3: note: Variable '*(long*)val_data.dptr' is assigned an expression that holds the same value. sweep-0.9.3/src/play.c:676:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sw_audio_t [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/play.c:730:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sw_audio_t [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/play.c:859:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sw_audio_t [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/play.c:937:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/print.c:62:10: style: Variable 'sign' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/print.c:109:28: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/param.c:415: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] sweep-0.9.3/src/param.c:636:10: 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] sweep-0.9.3/src/param.c:645: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] sweep-0.9.3/src/param.c:734:10: 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] sweep-0.9.3/src/param.c:742: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] sweep-0.9.3/src/param.c:50:14: style: Condition 'p1.i>p2.i' is always true [knownConditionTrueFalse] sweep-0.9.3/src/param.c:48:14: note: Assuming that condition 'p1.i==p2.i' is not redundant sweep-0.9.3/src/param.c:49:14: note: Assuming condition is false sweep-0.9.3/src/param.c:50:14: note: Condition 'p1.i>p2.i' is always true sweep-0.9.3/src/param.c:55:14: style: Condition 'p1.f>p2.f' is always true [knownConditionTrueFalse] sweep-0.9.3/src/param.c:53:14: note: Assuming that condition 'p1.f==p2.f' is not redundant sweep-0.9.3/src/param.c:54:14: note: Assuming condition is false sweep-0.9.3/src/param.c:55:14: note: Condition 'p1.f>p2.f' is always true sweep-0.9.3/src/question_dialogs.c:57:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_MODE_READY [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/question_dialogs.c:106:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_MOUSE [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/question_dialogs.c:182:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_MODE_READY [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/param.c:75:24: style: Parameter 'p1' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/param.c:82:34: style: Parameter 'proc' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/param.c:248:39: style: Parameter 'ps' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/param.c:265:19: style: Variable 'pspec' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/question_dialogs.c:123:10: 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] sweep-0.9.3/src/param.c:388:15: style: Variable 'digits' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/question_dialogs.c:84:46: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/record.c:174:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/record.c:212:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sw_audio_t [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/record.c:275:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_BUSY [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/record.c:341:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_MATCH_DATA [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/record.c:399:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_MATCH_DATA [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/record.c:435:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/record.c:212:10: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] sweep-0.9.3/src/record.c:330:9: style: Obsolete function 'g_basename' called. It is recommended to use 'g_path_get_basename' instead. [prohibitedg_basenameCalled] sweep-0.9.3/src/record.c:441: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] sweep-0.9.3/src/record.c:455: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] sweep-0.9.3/src/record.c:476: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] sweep-0.9.3/src/record.c:89:13: style: Variable 'h' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/record.c:130:28: style: Parameter 'head' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/record.c:237:7: error: Uninitialized variable: offset [legacyUninitvar] sweep-0.9.3/src/record.c:236:7: error: Uninitialized variable: remaining [legacyUninitvar] sweep-0.9.3/src/record.c:214:14: style: Variable 'rec_mixing' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/sw_chooser.c:96:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_INT [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sw_chooser.c:130:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_FRAME [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sw_chooser.c:250:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_MATCH_DATA [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sw_chooser.c:277:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable title [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sw_chooser.c:279: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] sweep-0.9.3/src/sw_chooser.c:302:10: 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] sweep-0.9.3/src/sw_chooser.c:84:19: style: Variable 'object_class' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sw_chooser.c:103:30: style: Parameter 'chooser' can be declared as pointer to const. However it seems that 'sw_chooser_init' is a callback function, if 'chooser' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sweep-0.9.3/src/sw_chooser.c:126:22: note: You might need to cast the function pointer here sweep-0.9.3/src/sw_chooser.c:103:30: note: Parameter 'chooser' can be declared as pointer to const sweep-0.9.3/src/sw_chooser.c:86:16: style: Variable 'object_class' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/sweep_filter.c:68:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_CANCEL [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sweep_filter.c:116:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_BUSY [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sweep_filter.c:177:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_BUSY [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sweep_filter.c:47:12: style: Variable 'sel' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sweep_filter.c:166:15: style: Variable 'out' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sweep_sample.c:129:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sw_sample [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sweep_sample.c:211:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sweep_sample.c:322:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sw_audio_t [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sweep_sample.c:406:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_CENTER [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sweep_sample.c:905:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_IDLE [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sweep_sample.c:1226:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_IDLE [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sweep_sample.c:1240:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_IDLE [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sweep_sample.c:1264:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_IDLE [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sweep_sample.c:1874:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_CENTER [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sweep_sample.c:184:44: style: Obsolete function 'g_basename' called. It is recommended to use 'g_path_get_basename' instead. [prohibitedg_basenameCalled] sweep-0.9.3/src/sweep_sample.c:417: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] sweep-0.9.3/src/sweep_sample.c:423: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] sweep-0.9.3/src/sweep_sample.c:430:10: 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] sweep-0.9.3/src/sweep_sample.c:450:10: 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] sweep-0.9.3/src/sweep_sample.c:477: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] sweep-0.9.3/src/sweep_sample.c:508:10: 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] sweep-0.9.3/src/sweep_sample.c:528:11: 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] sweep-0.9.3/src/sweep_sample.c:573:10: 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] sweep-0.9.3/src/sweep_sample.c:695:43: style: Obsolete function 'g_basename' called. It is recommended to use 'g_path_get_basename' instead. [prohibitedg_basenameCalled] sweep-0.9.3/src/sweep_sample.c:713:18: style: Obsolete function 'g_basename' called. It is recommended to use 'g_path_get_basename' instead. [prohibitedg_basenameCalled] sweep-0.9.3/src/sweep_sample.c:1830:47: style: Obsolete function 'g_basename' called. It is recommended to use 'g_path_get_basename' instead. [prohibitedg_basenameCalled] sweep-0.9.3/src/sweep_sample.c:123:26: style: Parameter 'pathname' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/sweep_sample.c:385:36: style: Parameter 'pathname' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/sweep_sample.c:659:35: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/sweep_sample.c:665:45: style: Parameter 'pathname' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/sweep_sample.c:690:15: style: Variable 's' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sweep_sample.c:760:31: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'sweep_quit_ok_cb' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sweep-0.9.3/src/sweep_sample.c:809:5: note: You might need to cast the function pointer here sweep-0.9.3/src/sweep_sample.c:760:31: note: Parameter 'widget' can be declared as pointer to const sweep-0.9.3/src/sweep_sample.c:760:48: style: Parameter 'data' can be declared as pointer to const. However it seems that 'sweep_quit_ok_cb' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sweep-0.9.3/src/sweep_sample.c:809:5: note: You might need to cast the function pointer here sweep-0.9.3/src/sweep_sample.c:760:48: note: Parameter 'data' can be declared as pointer to const sweep-0.9.3/src/sweep_sample.c:784:15: style: Variable 's' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sweep_sample.c:838:41: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/sweep_sample.c:850:40: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/sweep_sample.c:919:38: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/sweep_sample.c:923:13: style: Variable 'head' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sweep_sample.c:1050:40: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/sweep_sample.c:1082:33: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/sweep_sample.c:1107:33: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/sweep_sample.c:1132:30: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/sweep_sample.c:1157:33: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/sweep_sample.c:1221:46: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/sweep_sample.c:1338:35: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/sweep_sample.c:1341:12: style: Variable 'sel' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sweep_sample.c:1354:36: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/sweep_sample.c:1684:5: style: Variable 'n' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/sweep_sample.c:1737:5: style: Variable 'n' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/sweep_sample.c:1782:5: style: Variable 'n' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/sample-display.c:269:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable window [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:464:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable window [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:499:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable window [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:641:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable window [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:695:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_REALIZED [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:1003:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable style [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:1330:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_NOOP [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:1344:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_NOOP [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:1360:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_COPY [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:1395:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:1445:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:1540:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable style [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:1756:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_MODE_READY [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:1982:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:2011:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_MODE_READY [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:2145:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SCROLL_UP [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:2261:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:2453:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON1_MASK [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:2550:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_HAS_FOCUS [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:2579:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_HAS_FOCUS [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:2616:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_MODE_ALLOC [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:2840:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON1_MASK [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:2967:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_CAN_FOCUS [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sample-display.c:3008:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_WIDGET [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sweep_selection.c:47:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sw_sel [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sweep_selection.c:241:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWEEP_EDIT_STATE_BUSY [valueFlowBailoutIncompleteVar] sweep-0.9.3/src/sweep_selection.c:80:19: style: Parameter 's1' can be declared as pointer to const. However it seems that 'sel_cmp' is a callback function, if 's1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sweep-0.9.3/src/sweep_selection.c:126:57: note: You might need to cast the function pointer here sweep-0.9.3/src/sweep_selection.c:80:19: note: Parameter 's1' can be declared as pointer to const sweep-0.9.3/src/sweep_selection.c:80:32: style: Parameter 's2' can be declared as pointer to const. However it seems that 'sel_cmp' is a callback function, if 's2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sweep-0.9.3/src/sweep_selection.c:126:57: note: You might need to cast the function pointer here sweep-0.9.3/src/sweep_selection.c:80:32: note: Parameter 's2' can be declared as pointer to const sweep-0.9.3/src/sweep_selection.c:87:20: style: Parameter 'sels' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/sweep_selection.c:87:33: style: Parameter 'desc' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/play.c:623:27: style: Condition 'src_channels==dest_channels' is always true [knownConditionTrueFalse] sweep-0.9.3/src/play.c:616:28: note: Assuming that condition 'dest_channelsx_max' is not redundant sweep-0.9.3/src/sample-display.c:1246:12: note: Assuming condition is false sweep-0.9.3/src/sample-display.c:1248:32: note: Condition 'x<=x_max' is always true sweep-0.9.3/src/sample-display.c:1251:17: style: Condition 'x2>=x_min' is always true [knownConditionTrueFalse] sweep-0.9.3/src/sample-display.c:1246:12: note: Assuming that condition 'x2=x_min' is always true sweep-0.9.3/src/sample-display.c:2176:13: warning: Either the condition 's->view' is redundant or there is possible null pointer dereference: s->view. [nullPointerRedundantCheck] sweep-0.9.3/src/sample-display.c:2286:11: note: Assuming that condition 's->view' is not redundant sweep-0.9.3/src/sample-display.c:2176:13: note: Null pointer dereference sweep-0.9.3/src/sample-display.c:2215:2: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] sweep-0.9.3/src/sample-display.c:2227:4: note: Found duplicate branches for 'if' and 'else'. sweep-0.9.3/src/sample-display.c:2215:2: note: Found duplicate branches for 'if' and 'else'. sweep-0.9.3/src/sample-display.c:2096:16: style: Redundant initialization for 'just_clicked'. The initialized value is overwritten before it is read. [redundantInitialization] sweep-0.9.3/src/sample-display.c:2007:25: note: just_clicked is initialized sweep-0.9.3/src/sample-display.c:2096:16: note: just_clicked is overwritten sweep-0.9.3/src/sample-display.c:297:15: style: Variable 'sample' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sample-display.c:331:15: style: Variable 'sample' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sample-display.c:332:13: style: Variable 'head' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sample-display.c:365:15: style: Variable 'sample' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sample-display.c:366:13: style: Variable 'rec_head' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sample-display.c:402:15: style: Variable 'sample' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sample-display.c:404:12: style: Variable 'sel' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sample-display.c:582:15: style: Variable 'window' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sample-display.c:583:15: style: Variable 'visual' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sample-display.c:1232:15: style: Variable 'sample' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sample-display.c:1234:12: style: Variable 'sel' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sample-display.c:1430:15: style: Variable 'sample' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sample-display.c:1432:13: style: Variable 'head' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sample-display.c:1480:15: style: Variable 'sample' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sample-display.c:1518:55: style: Parameter 'area' can be declared as pointer to const [constParameterPointer] sweep-0.9.3/src/sample-display.c:1521:15: style: Variable 'sample' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sample-display.c:1923:19: style: Variable 'adj' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sample-display.c:2121:12: style: Variable 'sel' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sample-display.c:2139:22: style: Parameter 'event' can be declared as pointer to const. However it seems that 'sample_display_scroll_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sweep-0.9.3/src/sample-display.c:2883:32: note: You might need to cast the function pointer here sweep-0.9.3/src/sample-display.c:2139:22: note: Parameter 'event' can be declared as pointer to const sweep-0.9.3/src/sample-display.c:2826:63: style: Parameter 'event' can be declared as pointer to const. However it seems that 'sample_display_key_release' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sweep-0.9.3/src/sample-display.c:2888:37: note: You might need to cast the function pointer here sweep-0.9.3/src/sample-display.c:2826:63: note: Parameter 'event' can be declared as pointer to const sweep-0.9.3/src/sample-display.c:2868:19: style: Variable 'object_class' can be declared as pointer to const [constVariablePointer] sweep-0.9.3/src/sample-display.c:641:10: style: Variable 'window' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/sample-display.c:642:10: style: Variable 'visual' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/sample-display.c:864:10: style: Variable 'totpos' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/sample-display.c:864:19: style: Variable 'totneg' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/sample-display.c:865:10: style: Variable 'maxpos' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/sample-display.c:865:19: style: Variable 'minneg' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/sample-display.c:1050:10: style: Variable 'cerr' is assigned a value that is never used. [unreadVariable] sweep-0.9.3/src/sample-display.c:1505:12: style: Variable 'sample' is assigned a value that is never used. [unreadVariable] diff: 2.17.0 sweep-0.9.3/intl/os2compat.c:62:33: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] sweep-0.9.3/intl/os2compat.c:60:43: note: Assuming allocation function fails sweep-0.9.3/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 sweep-0.9.3/intl/os2compat.c:62:33: note: Null pointer addition head sweep-0.9.3/intl/os2compat.c:62:33: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] sweep-0.9.3/intl/os2compat.c:60:43: note: Assuming allocation function fails sweep-0.9.3/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 sweep-0.9.3/intl/os2compat.c:62:33: note: Null pointer addition 2.17.0 sweep-0.9.3/intl/os2compat.c:76:42: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] sweep-0.9.3/intl/os2compat.c:74:52: note: Assuming allocation function fails sweep-0.9.3/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 sweep-0.9.3/intl/os2compat.c:76:42: note: Null pointer addition head sweep-0.9.3/intl/os2compat.c:76:42: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] sweep-0.9.3/intl/os2compat.c:74:52: note: Assuming allocation function fails sweep-0.9.3/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 sweep-0.9.3/intl/os2compat.c:76:42: note: Null pointer addition 2.17.0 sweep-0.9.3/intl/os2compat.c:90:36: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] sweep-0.9.3/intl/os2compat.c:88:46: note: Assuming allocation function fails sweep-0.9.3/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 sweep-0.9.3/intl/os2compat.c:90:36: note: Null pointer addition head sweep-0.9.3/intl/os2compat.c:90:36: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] sweep-0.9.3/intl/os2compat.c:88:46: note: Assuming allocation function fails sweep-0.9.3/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 sweep-0.9.3/intl/os2compat.c:90:36: note: Null pointer addition head sweep-0.9.3/src/edit.c:284:37: style: Parameter 'eb' can be declared as pointer to const [constParameterPointer] head sweep-0.9.3/src/edit.c:719:61: style: Parameter 'eb' can be declared as pointer to const [constParameterPointer] 2.17.0 sweep-0.9.3/src/file_dialogs.c:471:23: warning: If memory allocation fails, then there is a possible null pointer dereference: e [nullPointerOutOfMemory] sweep-0.9.3/src/file_dialogs.c:470:25: note: Assuming allocation function fails sweep-0.9.3/src/file_dialogs.c:470:25: note: Assignment 'exts=g_strsplit(desc->exts,",",16)', assigned value is 0 sweep-0.9.3/src/file_dialogs.c:471:16: note: Assignment 'e=exts', assigned value is 0 sweep-0.9.3/src/file_dialogs.c:471:23: note: Null pointer dereference 2.17.0 sweep-0.9.3/src/preferences.c:96:15: warning: If memory allocation fails, then there is a possible null pointer dereference: prefs_path [nullPointerOutOfMemory] sweep-0.9.3/src/preferences.c:94:28: note: Assuming allocation function fails sweep-0.9.3/src/preferences.c:94:28: note: Assignment 'prefs_path=g_strconcat(prefs_path,"/preferences.tdb",NULL)', assigned value is 0 sweep-0.9.3/src/preferences.c:96:15: note: Null pointer dereference head sweep-0.9.3/src/record.c:130:28: style: Parameter 'head' can be declared as pointer to const [constParameterPointer] 2.17.0 sweep-0.9.3/src/sweep_sample.c:675:10: style: Condition 's->pathname' is always true [knownConditionTrueFalse] head sweep-0.9.3/src/sweep_sounddata.c:306:43: style: Parameter 'sounddata' can be declared as pointer to const [constParameterPointer] DONE