2026-05-01 18:17 ftp://ftp.de.debian.org/debian/pool/main/e/enum/enum_1.1.orig.tar.bz2 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 -j6 platform: Linux-7.0.3+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a734 (2026-05-01 11:10:43 +0200) count: 41 38 elapsed-time: 0.4 0.3 head-timing-info: old-timing-info: head results: enum-1.1/src/info.c:44:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] enum-1.1/src/main.c:123:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] enum-1.1/src/main.c:64:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] enum-1.1/src/utils.c:112:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] enum-1.1/src/utils.c:218:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] enum-1.1/src/printing.c:131:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] enum-1.1/src/printing.c:305:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] enum-1.1/src/utils.c:81:53: style:inconclusive: Function 'enum_strndup' argument 2 names different: declaration 'length' definition 'n'. [funcArgNamesDifferent] enum-1.1/src/utils.h:88:53: note: Function 'enum_strndup' argument 2 names different: declaration 'length' definition 'n'. enum-1.1/src/utils.c:81:53: note: Function 'enum_strndup' argument 2 names different: declaration 'length' definition 'n'. enum-1.1/test/main.c:185:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] enum-1.1/test/main.c:296:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] enum-1.1/src/generator.c:119:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] enum-1.1/src/generator.c:258:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] enum-1.1/src/generator.c:334:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] enum-1.1/test/main.c:78:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] enum-1.1/test/main.c:80:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] enum-1.1/test/main.c:131:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] enum-1.1/test/main.c:164:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] enum-1.1/test/main.c:164:4: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] enum-1.1/thirdparty/glibc-2.11.1/posix/getopt.c:289:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RETURN_IN_ORDER [valueFlowBailoutIncompleteVar] enum-1.1/thirdparty/glibc-2.11.1/posix/getopt.c:437:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PERMUTE [valueFlowBailoutIncompleteVar] enum-1.1/src/parsing.c:342:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] enum-1.1/src/parsing.c:369:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] enum-1.1/src/parsing.c:403:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] enum-1.1/src/parsing.c:424:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] enum-1.1/src/parsing.c:510:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] enum-1.1/src/parsing.c:577:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] enum-1.1/src/parsing.c:628:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] enum-1.1/src/parsing.c:689:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] enum-1.1/src/parsing.c:733:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_argument [valueFlowBailoutIncompleteVar] enum-1.1/src/parsing.c:1016:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] enum-1.1/src/parsing.c:1129:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] enum-1.1/thirdparty/glibc-2.11.1/posix/getopt.c:283:42: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] enum-1.1/thirdparty/glibc-2.11.1/posix/getopt.c:1135:13: style:inconclusive: Function 'getopt' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] enum-1.1/thirdparty/glibc-2.11.1/posix/getopt.c:1135:32: style:inconclusive: Function 'getopt' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] enum-1.1/thirdparty/glibc-2.11.1/posix/getopt.c:1135:50: style:inconclusive: Function 'getopt' argument 3 names different: declaration '' definition 'optstring'. [funcArgNamesDifferentUnnamed] enum-1.1/thirdparty/glibc-2.11.1/posix/getopt.c:785:11: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] enum-1.1/src/parsing.c:586:6: style: Condition '!scaffold->terminator' is always false [knownConditionTrueFalse] enum-1.1/src/parsing.c:653:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] enum-1.1/src/parsing.c:828:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] enum-1.1/src/parsing.c:604:77: style: Parameter 'token' can be declared as pointer to const [constParameterPointer] enum-1.1/src/parsing.c:732:17: style: Variable 'long_options' can be declared as const array [constVariable] diff: head enum-1.1/thirdparty/glibc-2.11.1/posix/getopt.c:1135:13: style:inconclusive: Function 'getopt' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] head enum-1.1/thirdparty/glibc-2.11.1/posix/getopt.c:1135:32: style:inconclusive: Function 'getopt' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] head enum-1.1/thirdparty/glibc-2.11.1/posix/getopt.c:1135:50: style:inconclusive: Function 'getopt' argument 3 names different: declaration '' definition 'optstring'. [funcArgNamesDifferentUnnamed] DONE