2026-05-02 06:22 ftp://ftp.de.debian.org/debian/pool/main/g/gnu-which/gnu-which_2.21+dfsg.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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: 41 13 elapsed-time: 0.4 0.3 head-timing-info: old-timing-info: head results: gnu-which-2.21+dfsg/sys.h:51:5: error: #error "You either need getcwd(3) or getwd(3)" [preprocessorErrorDirective] gnu-which-2.21+dfsg/getopt.c:684:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnu-which-2.21+dfsg/getopt.c:520:10: style:inconclusive: Function '_getopt_internal' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/getopt.c:521:19: style:inconclusive: Function '_getopt_internal' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/getopt.c:522:18: style:inconclusive: Function '_getopt_internal' argument 3 names different: declaration '' definition 'optstring'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/getopt.c:523:27: style:inconclusive: Function '_getopt_internal' argument 4 names different: declaration '' definition 'longopts'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/getopt.c:524:11: style:inconclusive: Function '_getopt_internal' argument 5 names different: declaration '' definition 'longind'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/getopt.c:525:10: style:inconclusive: Function '_getopt_internal' argument 6 names different: declaration '' definition 'long_only'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/getopt.c:974:10: style:inconclusive: Function 'getopt' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/getopt.c:975:19: style:inconclusive: Function 'getopt' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/getopt.c:976:18: style:inconclusive: Function 'getopt' argument 3 names different: declaration '' definition 'optstring'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/getopt.c:777:11: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] gnu-which-2.21+dfsg/getopt1.c:69:10: style:inconclusive: Function 'getopt_long' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/getopt1.c:70:19: style:inconclusive: Function 'getopt_long' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/getopt1.c:71:18: style:inconclusive: Function 'getopt_long' argument 3 names different: declaration '' definition 'options'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/getopt1.c:72:27: style:inconclusive: Function 'getopt_long' argument 4 names different: declaration '' definition 'long_options'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/getopt1.c:73:11: style:inconclusive: Function 'getopt_long' argument 5 names different: declaration '' definition 'opt_index'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/getopt1.c:85:10: style:inconclusive: Function 'getopt_long_only' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/getopt1.c:86:19: style:inconclusive: Function 'getopt_long_only' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/getopt1.c:87:18: style:inconclusive: Function 'getopt_long_only' argument 3 names different: declaration '' definition 'options'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/getopt1.c:88:27: style:inconclusive: Function 'getopt_long_only' argument 4 names different: declaration '' definition 'long_options'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/getopt1.c:89:11: style:inconclusive: Function 'getopt_long_only' argument 5 names different: declaration '' definition 'opt_index'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/tilde/shell.c:66:11: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] gnu-which-2.21+dfsg/tilde/shell.c:54:12: style: Parameter 'varname' can be declared as pointer to const [constParameterPointer] gnu-which-2.21+dfsg/tilde/shell.c:63:18: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] gnu-which-2.21+dfsg/tilde/tilde.c:394:18: style: Condition 'user_entry==0' is always true [knownConditionTrueFalse] gnu-which-2.21+dfsg/tilde/tilde.c:392:16: note: Assignment 'user_entry=0', assigned value is 0 gnu-which-2.21+dfsg/tilde/tilde.c:394:18: note: Condition 'user_entry==0' is always true gnu-which-2.21+dfsg/tilde/tilde.c:234:16: warning: If memory allocation fails, then there is a possible null pointer dereference: tilde_word [nullPointerOutOfMemory] gnu-which-2.21+dfsg/tilde/tilde.c:233:36: note: Assuming allocation function fails gnu-which-2.21+dfsg/tilde/tilde.c:233:20: note: Assignment 'tilde_word=(char*)xmalloc(1+end)', assigned value is 0 gnu-which-2.21+dfsg/tilde/tilde.c:234:16: note: Null pointer dereference gnu-which-2.21+dfsg/tilde/tilde.c:279:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gnu-which-2.21+dfsg/tilde/tilde.c:273:25: note: Assuming allocation function fails gnu-which-2.21+dfsg/tilde/tilde.c:273:9: note: Assignment 'ret=(char*)xmalloc(strlen(fname))', assigned value is 0 gnu-which-2.21+dfsg/tilde/tilde.c:279:5: note: Null pointer dereference gnu-which-2.21+dfsg/tilde/tilde.c:280:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gnu-which-2.21+dfsg/tilde/tilde.c:273:25: note: Assuming allocation function fails gnu-which-2.21+dfsg/tilde/tilde.c:273:9: note: Assignment 'ret=(char*)xmalloc(strlen(fname))', assigned value is 0 gnu-which-2.21+dfsg/tilde/tilde.c:280:3: note: Null pointer dereference gnu-which-2.21+dfsg/tilde/tilde.c:129:18: style:inconclusive: Function 'tilde_find_prefix' argument 1 names different: declaration '' definition 'string'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/tilde/tilde.c:130:11: style:inconclusive: Function 'tilde_find_prefix' argument 2 names different: declaration '' definition 'len'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/tilde/tilde.c:164:18: style:inconclusive: Function 'tilde_find_suffix' argument 1 names different: declaration '' definition 'string'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/tilde/tilde.c:193:18: style:inconclusive: Function 'tilde_expand' argument 1 names different: declaration '' definition 'string'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/tilde/tilde.c:267:18: style:inconclusive: Function 'isolate_tilde_prefix' argument 1 names different: declaration '' definition 'fname'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/tilde/tilde.c:268:11: style:inconclusive: Function 'isolate_tilde_prefix' argument 2 names different: declaration '' definition 'lenp'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/tilde/tilde.c:323:12: style:inconclusive: Function 'glue_prefix_and_suffix' argument 1 names different: declaration '' definition 'prefix'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/tilde/tilde.c:324:18: style:inconclusive: Function 'glue_prefix_and_suffix' argument 2 names different: declaration '' definition 'suffix'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/tilde/tilde.c:325:10: style:inconclusive: Function 'glue_prefix_and_suffix' argument 3 names different: declaration '' definition 'suffind'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/tilde/tilde.c:344:18: style:inconclusive: Function 'tilde_expand_word' argument 1 names different: declaration '' definition 'filename'. [funcArgNamesDifferentUnnamed] gnu-which-2.21+dfsg/tilde/tilde.c:323:12: style: Parameter 'prefix' can be declared as pointer to const [constParameterPointer] gnu-which-2.21+dfsg/tilde/tilde.c:348:18: style: Variable 'user_entry' can be declared as pointer to const [constVariablePointer] diff: head gnu-which-2.21+dfsg/getopt.c:520:10: style:inconclusive: Function '_getopt_internal' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/getopt.c:521:19: style:inconclusive: Function '_getopt_internal' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/getopt.c:522:18: style:inconclusive: Function '_getopt_internal' argument 3 names different: declaration '' definition 'optstring'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/getopt.c:523:27: style:inconclusive: Function '_getopt_internal' argument 4 names different: declaration '' definition 'longopts'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/getopt.c:524:11: style:inconclusive: Function '_getopt_internal' argument 5 names different: declaration '' definition 'longind'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/getopt.c:525:10: style:inconclusive: Function '_getopt_internal' argument 6 names different: declaration '' definition 'long_only'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/getopt.c:974:10: style:inconclusive: Function 'getopt' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/getopt.c:975:19: style:inconclusive: Function 'getopt' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/getopt.c:976:18: style:inconclusive: Function 'getopt' argument 3 names different: declaration '' definition 'optstring'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/getopt1.c:69:10: style:inconclusive: Function 'getopt_long' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/getopt1.c:70:19: style:inconclusive: Function 'getopt_long' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/getopt1.c:71:18: style:inconclusive: Function 'getopt_long' argument 3 names different: declaration '' definition 'options'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/getopt1.c:72:27: style:inconclusive: Function 'getopt_long' argument 4 names different: declaration '' definition 'long_options'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/getopt1.c:73:11: style:inconclusive: Function 'getopt_long' argument 5 names different: declaration '' definition 'opt_index'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/getopt1.c:85:10: style:inconclusive: Function 'getopt_long_only' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/getopt1.c:86:19: style:inconclusive: Function 'getopt_long_only' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/getopt1.c:87:18: style:inconclusive: Function 'getopt_long_only' argument 3 names different: declaration '' definition 'options'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/getopt1.c:88:27: style:inconclusive: Function 'getopt_long_only' argument 4 names different: declaration '' definition 'long_options'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/getopt1.c:89:11: style:inconclusive: Function 'getopt_long_only' argument 5 names different: declaration '' definition 'opt_index'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/tilde/tilde.c:129:18: style:inconclusive: Function 'tilde_find_prefix' argument 1 names different: declaration '' definition 'string'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/tilde/tilde.c:130:11: style:inconclusive: Function 'tilde_find_prefix' argument 2 names different: declaration '' definition 'len'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/tilde/tilde.c:164:18: style:inconclusive: Function 'tilde_find_suffix' argument 1 names different: declaration '' definition 'string'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/tilde/tilde.c:193:18: style:inconclusive: Function 'tilde_expand' argument 1 names different: declaration '' definition 'string'. [funcArgNamesDifferentUnnamed] 2.20.0 gnu-which-2.21+dfsg/tilde/tilde.c:235:7: warning: If memory allocation fails, then there is a possible null pointer dereference: tilde_word [nullPointerOutOfMemory] gnu-which-2.21+dfsg/tilde/tilde.c:233:36: note: Assuming allocation function fails gnu-which-2.21+dfsg/tilde/tilde.c:233:20: note: Assignment 'tilde_word=(char*)xmalloc(1+end)', assigned value is 0 gnu-which-2.21+dfsg/tilde/tilde.c:235:7: note: Null pointer dereference head gnu-which-2.21+dfsg/tilde/tilde.c:267:18: style:inconclusive: Function 'isolate_tilde_prefix' argument 1 names different: declaration '' definition 'fname'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/tilde/tilde.c:268:11: style:inconclusive: Function 'isolate_tilde_prefix' argument 2 names different: declaration '' definition 'lenp'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/tilde/tilde.c:323:12: style:inconclusive: Function 'glue_prefix_and_suffix' argument 1 names different: declaration '' definition 'prefix'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/tilde/tilde.c:324:18: style:inconclusive: Function 'glue_prefix_and_suffix' argument 2 names different: declaration '' definition 'suffix'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/tilde/tilde.c:325:10: style:inconclusive: Function 'glue_prefix_and_suffix' argument 3 names different: declaration '' definition 'suffind'. [funcArgNamesDifferentUnnamed] head gnu-which-2.21+dfsg/tilde/tilde.c:344:18: style:inconclusive: Function 'tilde_expand_word' argument 1 names different: declaration '' definition 'filename'. [funcArgNamesDifferentUnnamed] DONE