2026-05-01 16:59 ftp://ftp.de.debian.org/debian/pool/main/d/dzen2/dzen2_0.9.5~svn271.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 87 58 elapsed-time: 2.9 2.0 head-timing-info: old-timing-info: head results: dzen-0.9.5~svn271/action.c:169:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NoSymbol [valueFlowBailoutIncompleteVar] dzen-0.9.5~svn271/action.c:306:78: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IsUnmapped [valueFlowBailoutIncompleteVar] dzen-0.9.5~svn271/action.c:459:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] dzen-0.9.5~svn271/action.c:477:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] dzen-0.9.5~svn271/action.c:553:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CurrentTime [valueFlowBailoutIncompleteVar] dzen-0.9.5~svn271/action.c:568:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CurrentTime [valueFlowBailoutIncompleteVar] dzen-0.9.5~svn271/action.c:121:32: warning: Either the condition 'opos<64' is redundant or the array 'item->action[hpos]->options[64]' is accessed at index 64, which is out of bounds. [arrayIndexOutOfBoundsCond] dzen-0.9.5~svn271/action.c:119:12: note: Assuming that condition 'opos<64' is not redundant dzen-0.9.5~svn271/action.c:121:32: note: Array index out of bounds dzen-0.9.5~svn271/action.c:432:10: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] dzen-0.9.5~svn271/action.c:431:15: note: outer condition: opt[i] dzen-0.9.5~svn271/action.c:432:10: note: identical inner condition: opt[i] dzen-0.9.5~svn271/action.c:130:17: style:inconclusive: Function 'find_event' argument 1 names different: declaration '' definition 'evid'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:144:16: style:inconclusive: Function 'do_action' argument 1 names different: declaration '' definition 'evid'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:163:23: style:inconclusive: Function 'get_ev_id' argument 1 names different: declaration '' definition 'evname'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:182:32: style:inconclusive: Function 'get_action_handler' argument 1 names different: declaration '' definition 'acname'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:207:21: style:inconclusive: Function 'fill_ev_table' argument 1 names different: declaration '' definition 'input'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:268:15: style:inconclusive: Function 'a_exit' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:276:19: style:inconclusive: Function 'a_collapse' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:287:21: style:inconclusive: Function 'a_uncollapse' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:301:25: style:inconclusive: Function 'a_togglecollapse' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:315:16: style:inconclusive: Function 'a_stick' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:324:18: style:inconclusive: Function 'a_unstick' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:333:22: style:inconclusive: Function 'a_togglestick' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:362:19: style:inconclusive: Function 'a_scrollup' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:374:21: style:inconclusive: Function 'a_scrolldown' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:386:15: style:inconclusive: Function 'a_hide' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:403:17: style:inconclusive: Function 'a_unhide' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:417:21: style:inconclusive: Function 'a_togglehide' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:427:15: style:inconclusive: Function 'a_exec' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:437:16: style:inconclusive: Function 'a_print' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:447:20: style:inconclusive: Function 'a_menuprint' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:467:28: style:inconclusive: Function 'a_menuprint_noparse' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:484:19: style:inconclusive: Function 'a_menuexec' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:499:16: style:inconclusive: Function 'a_raise' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:509:16: style:inconclusive: Function 'a_lower' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:519:21: style:inconclusive: Function 'a_scrollhome' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:531:20: style:inconclusive: Function 'a_scrollend' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:543:19: style:inconclusive: Function 'a_grabkeys' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:551:21: style:inconclusive: Function 'a_ungrabkeys' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:558:20: style:inconclusive: Function 'a_grabmouse' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:566:22: style:inconclusive: Function 'a_ungrabmouse' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] dzen-0.9.5~svn271/action.c:113:49: style: Parameter 'opt' can be declared as pointer to const [constParameterPointer] dzen-0.9.5~svn271/action.c:131:11: style: Variable 'item' can be declared as pointer to const [constVariablePointer] dzen-0.9.5~svn271/action.c:268:15: style: Parameter 'opt' can be declared as const array. However it seems that 'a_exit' is a callback function, if 'opt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dzen-0.9.5~svn271/action.c:38:22: note: You might need to cast the function pointer here dzen-0.9.5~svn271/action.c:268:15: note: Parameter 'opt' can be declared as const array dzen-0.9.5~svn271/action.c:362:19: style: Parameter 'opt' can be declared as const array. However it seems that 'a_scrollup' is a callback function, if 'opt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dzen-0.9.5~svn271/action.c:48:22: note: You might need to cast the function pointer here dzen-0.9.5~svn271/action.c:362:19: note: Parameter 'opt' can be declared as const array dzen-0.9.5~svn271/action.c:374:21: style: Parameter 'opt' can be declared as const array. However it seems that 'a_scrolldown' is a callback function, if 'opt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dzen-0.9.5~svn271/action.c:49:22: note: You might need to cast the function pointer here dzen-0.9.5~svn271/action.c:374:21: note: Parameter 'opt' can be declared as const array dzen-0.9.5~svn271/action.c:215:10: style: Variable 'eid' is assigned a value that is never used. [unreadVariable] dzen-0.9.5~svn271/draw.c:480:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GCFont [valueFlowBailoutIncompleteVar] dzen-0.9.5~svn271/draw.c:176:8: error: Array 'tokval[256]' accessed at index 256, which is out of bounds. [arrayIndexOutOfBounds] dzen-0.9.5~svn271/draw.c:173:2: note: After for loop, i has value 256 dzen-0.9.5~svn271/draw.c:176:8: note: Array index out of bounds dzen-0.9.5~svn271/draw.c:284:7: error: Array 'buf[128]' accessed at index 128, which is out of bounds. [arrayIndexOutOfBounds] dzen-0.9.5~svn271/draw.c:275:3: note: After for loop, i has value 128 dzen-0.9.5~svn271/draw.c:284:7: note: Array index out of bounds dzen-0.9.5~svn271/draw.c:775:10: warning: Either the condition 'j>=0' is redundant or the array 'lbuf[8192]' is accessed at index -1, which is out of bounds. [negativeIndex] dzen-0.9.5~svn271/draw.c:774:79: note: Assuming that condition 'j>=0' is not redundant dzen-0.9.5~svn271/draw.c:775:10: note: Negative array index dzen-0.9.5~svn271/draw.c:275:13: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] dzen-0.9.5~svn271/draw.c:495:7: warning: Possible null pointer dereference: linep [nullPointer] dzen-0.9.5~svn271/draw.c:413:11: note: Assignment 'line=NULL', assigned value is 0 dzen-0.9.5~svn271/draw.c:493:10: note: Assignment 'linep=line', assigned value is 0 dzen-0.9.5~svn271/draw.c:495:7: note: Null pointer dereference dzen-0.9.5~svn271/draw.c:350:24: style:inconclusive: Function 'parse_line' argument 1 names different: declaration 'text' definition 'line'. [funcArgNamesDifferent] dzen-0.9.5~svn271/dzen.h:165:39: note: Function 'parse_line' argument 1 names different: declaration 'text' definition 'line'. dzen-0.9.5~svn271/draw.c:350:24: note: Function 'parse_line' argument 1 names different: declaration 'text' definition 'line'. dzen-0.9.5~svn271/draw.c:350:34: style:inconclusive: Function 'parse_line' argument 2 names different: declaration 'linenr' definition 'lnr'. [funcArgNamesDifferent] dzen-0.9.5~svn271/dzen.h:166:7: note: Function 'parse_line' argument 2 names different: declaration 'linenr' definition 'lnr'. dzen-0.9.5~svn271/draw.c:350:34: note: Function 'parse_line' argument 2 names different: declaration 'linenr' definition 'lnr'. dzen-0.9.5~svn271/draw.c:130:20: style: Variable 'font_extents' can be declared as pointer to const [constVariablePointer] dzen-0.9.5~svn271/draw.c:219:21: style: Parameter 's' can be declared as pointer to const [constParameterPointer] dzen-0.9.5~svn271/draw.c:222:11: style: Variable 'comma' can be declared as pointer to const [constVariablePointer] dzen-0.9.5~svn271/draw.c:230:21: style: Parameter 's' can be declared as pointer to const [constParameterPointer] dzen-0.9.5~svn271/draw.c:237:23: style: Parameter 's' can be declared as pointer to const [constParameterPointer] dzen-0.9.5~svn271/draw.c:245:20: style: Parameter 's' can be declared as pointer to const [constParameterPointer] dzen-0.9.5~svn271/draw.c:301:28: style: Parameter 's' can be declared as pointer to const [constParameterPointer] dzen-0.9.5~svn271/draw.c:918:35: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] dzen-0.9.5~svn271/draw.c:1012:8: style: Variable 'ec' can be declared as pointer to const [constVariablePointer] dzen-0.9.5~svn271/draw.c:134:16: style: Variable 'font_extents' is assigned a value that is never used. [unreadVariable] dzen-0.9.5~svn271/draw.c:239:11: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] dzen-0.9.5~svn271/draw.c:246:7: style: Variable 'i' is assigned a value that is never used. [unreadVariable] dzen-0.9.5~svn271/gadgets/dbar-main.c:51:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dzen-0.9.5~svn271/gadgets/dbar.c:132:7: style: Variable 'p' is assigned a value that is never used. [unreadVariable] dzen-0.9.5~svn271/gadgets/dbar.c:139:7: style: Variable 'p' is assigned a value that is never used. [unreadVariable] dzen-0.9.5~svn271/gadgets/gcpubar.c:60:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dzen-0.9.5~svn271/gadgets/gcpubar.c:175:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] dzen-0.9.5~svn271/gadgets/gcpubar.c:178:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] dzen-0.9.5~svn271/gadgets/gcpubar.c:41:26: style: Parameter 'argv' can be declared as const array [constParameter] dzen-0.9.5~svn271/gadgets/gcpubar.c:43:9: style: Unused variable: total [unusedVariable] dzen-0.9.5~svn271/gadgets/gcpubar.c:152:12: style: Unused variable: myload [unusedVariable] dzen-0.9.5~svn271/gadgets/gdbar.c:64:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dzen-0.9.5~svn271/gadgets/gdbar.c:6:26: style: Parameter 'argv' can be declared as const array [constParameter] dzen-0.9.5~svn271/gadgets/textwidth.c:84:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dzen-0.9.5~svn271/gadgets/textwidth.c:99:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dzen-0.9.5~svn271/gadgets/textwidth.c:65:20: style: Variable 'font_extents' can be declared as pointer to const [constVariablePointer] dzen-0.9.5~svn271/gadgets/textwidth.c:96:8: style: Variable 'myfont' can be declared as pointer to const [constVariablePointer] dzen-0.9.5~svn271/gadgets/textwidth.c:96:17: style: Variable 'text' can be declared as pointer to const [constVariablePointer] dzen-0.9.5~svn271/gadgets/textwidth.c:69:16: style: Variable 'font_extents' is assigned a value that is never used. [unreadVariable] dzen-0.9.5~svn271/main.c:1045:18: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] dzen-0.9.5~svn271/util.c:32:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dzen-0.9.5~svn271/util.c:59:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dzen-0.9.5~svn271/action.c:269:5: error: Null pointer dereference: opt [ctunullpointer] dzen-0.9.5~svn271/draw.c:983:9: note: Calling function a_exit, 1st argument is null dzen-0.9.5~svn271/action.c:269:5: note: Dereferencing argument opt that is null diff: head dzen-0.9.5~svn271/action.c:130:17: style:inconclusive: Function 'find_event' argument 1 names different: declaration '' definition 'evid'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:144:16: style:inconclusive: Function 'do_action' argument 1 names different: declaration '' definition 'evid'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:163:23: style:inconclusive: Function 'get_ev_id' argument 1 names different: declaration '' definition 'evname'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:182:32: style:inconclusive: Function 'get_action_handler' argument 1 names different: declaration '' definition 'acname'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:207:21: style:inconclusive: Function 'fill_ev_table' argument 1 names different: declaration '' definition 'input'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:268:15: style:inconclusive: Function 'a_exit' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:276:19: style:inconclusive: Function 'a_collapse' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:287:21: style:inconclusive: Function 'a_uncollapse' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:301:25: style:inconclusive: Function 'a_togglecollapse' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:315:16: style:inconclusive: Function 'a_stick' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:324:18: style:inconclusive: Function 'a_unstick' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:333:22: style:inconclusive: Function 'a_togglestick' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:362:19: style:inconclusive: Function 'a_scrollup' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:374:21: style:inconclusive: Function 'a_scrolldown' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:386:15: style:inconclusive: Function 'a_hide' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:403:17: style:inconclusive: Function 'a_unhide' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:417:21: style:inconclusive: Function 'a_togglehide' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:427:15: style:inconclusive: Function 'a_exec' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:437:16: style:inconclusive: Function 'a_print' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:447:20: style:inconclusive: Function 'a_menuprint' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:467:28: style:inconclusive: Function 'a_menuprint_noparse' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:484:19: style:inconclusive: Function 'a_menuexec' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:499:16: style:inconclusive: Function 'a_raise' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:509:16: style:inconclusive: Function 'a_lower' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:519:21: style:inconclusive: Function 'a_scrollhome' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:531:20: style:inconclusive: Function 'a_scrollend' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:543:19: style:inconclusive: Function 'a_grabkeys' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:551:21: style:inconclusive: Function 'a_ungrabkeys' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:558:20: style:inconclusive: Function 'a_grabmouse' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] head dzen-0.9.5~svn271/action.c:566:22: style:inconclusive: Function 'a_ungrabmouse' argument 1 names different: declaration '' definition 'opt'. [funcArgNamesDifferentUnnamed] 2.20.0 dzen-0.9.5~svn271/draw.c:280:11: style: Variable 'buf[i]' is assigned a value that is never used. [unreadVariable] DONE