2024-03-26 15:00 ftp://ftp.de.debian.org/debian/pool/main/c/cde/cde_0.1+git9-g551e54d.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=valueFlowBailoutIncompleteVar -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-0.deb11.6-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.45 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.13.0 head-info: 61552d0 (2024-03-26 14:25:53 +0100) count: 175 166 elapsed-time: 1.6 1.5 head-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 1.44744s (avg. 1.44744s - 1 result(s)) valueFlowLifetime(tokenlist, errorLogger, settings): 0.446444s (avg. 0.111611s - 4 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.337211s (avg. 0.112404s - 3 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.198103s (avg. 0.0660343s - 3 result(s)) valueFlowUninit(tokenlist, errorLogger, settings): 0.193569s (avg. 0.064523s - 3 result(s)) Overall time: 1.56512s old-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 1.37755s (avg. 1.37755s - 1 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.731133s (avg. 0.243711s - 3 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.177462s (avg. 0.059154s - 3 result(s)) valueFlowLifetime(tokenlist, errorLogger, settings): 0.163553s (avg. 0.0408883s - 4 result(s)) valueFlowUninit(tokenlist, settings): 0.095216s (avg. 0.0317387s - 3 result(s)) Overall time: 1.48453s head results: cde-0.1+git9-g551e54d/first-draft/cde.c:61:19: style: Variable 'child_filename' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/first-draft/cde_utils.c:68:30: warning: Either the condition '!f' is redundant or there is possible null pointer dereference: f. [nullPointerRedundantCheck] cde-0.1+git9-g551e54d/first-draft/cde_utils.c:65:7: note: Assuming that condition '!f' is not redundant cde-0.1+git9-g551e54d/first-draft/cde_utils.c:68:30: note: Null pointer dereference cde-0.1+git9-g551e54d/first-draft/cde_utils.c:56:35: style:inconclusive: Function 'find_free_addr' argument 2 names different: declaration 'exec' definition 'prot'. [funcArgNamesDifferent] cde-0.1+git9-g551e54d/first-draft/cde.h:129:35: note: Function 'find_free_addr' argument 2 names different: declaration 'exec' definition 'prot'. cde-0.1+git9-g551e54d/first-draft/cde_utils.c:56:35: note: Function 'find_free_addr' argument 2 names different: declaration 'exec' definition 'prot'. cde-0.1+git9-g551e54d/first-draft/cde_utils.c:354:22: style: Parameter 'src_filename' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/first-draft/cde_utils.c:354:42: style: Parameter 'dst_filename' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:403:22: error: There is an unknown macro here somewhere. Configuration is required. If BFD_VMA_FMT is a macro then please configure it. [unknownMacro] cde-0.1+git9-g551e54d/strace-4.6/cde.c:577:0: error: #error "Unknown architecture (not I386 or X86_64)" [preprocessorErrorDirective] cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:725:7: warning: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:954:4: warning: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:985:19: style: Parameter 'ATTRIBUTE_UNUSED' can be declared as pointer to const. However it seems that 'unw_decode_b1' is a callback function, if 'ATTRIBUTE_UNUSED' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:1066:7: note: You might need to cast the function pointer here cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:985:19: note: Parameter 'ATTRIBUTE_UNUSED' can be declared as pointer to const cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:960:4: warning: Uninitialized variable: abistr [uninitvar] cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:960:4: note: Assignment 'abistr=buf', assigned value is cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:960:4: note: Assuming condition is true cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:960:4: note: Uninitialized variable: abistr cde-0.1+git9-g551e54d/strace-4.6/count.c:115:19: style: Parameter 'a' can be declared as pointer to const. However it seems that 'syscall_cmp' is a callback function, if 'a' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cde-0.1+git9-g551e54d/strace-4.6/count.c:141:13: note: You might need to cast the function pointer here cde-0.1+git9-g551e54d/strace-4.6/count.c:115:19: note: Parameter 'a' can be declared as pointer to const cde-0.1+git9-g551e54d/strace-4.6/count.c:115:28: style: Parameter 'b' can be declared as pointer to const. However it seems that 'syscall_cmp' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cde-0.1+git9-g551e54d/strace-4.6/count.c:141:13: note: You might need to cast the function pointer here cde-0.1+git9-g551e54d/strace-4.6/count.c:115:28: note: Parameter 'b' can be declared as pointer to const cde-0.1+git9-g551e54d/strace-4.6/file.c:825:13: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] cde-0.1+git9-g551e54d/strace-4.6/file.c:818:13: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/strace-4.6/file.c:1067:27: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/file.c:2774:25: style: Variable 'd' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/strace-4.6/file.c:3100:19: style: Variable 'in' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/strace-4.6/desc.c:565:7: warning: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] cde-0.1+git9-g551e54d/strace-4.6/desc.c:573:7: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] cde-0.1+git9-g551e54d/strace-4.6/desc.c:537:15: style: Local variable 'sep' shadows outer variable [shadowVariable] cde-0.1+git9-g551e54d/strace-4.6/desc.c:497:14: note: Shadowed declaration cde-0.1+git9-g551e54d/strace-4.6/desc.c:537:15: note: Shadow variable cde-0.1+git9-g551e54d/strace-4.6/desc.c:490:38: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/net.c:1845:3: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] cde-0.1+git9-g551e54d/strace-4.6/net.c:1847:5: note: Found duplicate branches for 'if' and 'else'. cde-0.1+git9-g551e54d/strace-4.6/net.c:1845:3: note: Found duplicate branches for 'if' and 'else'. cde-0.1+git9-g551e54d/strace-4.6/net.c:1225:7: style: Unused variable: string_addr [unusedVariable] cde-0.1+git9-g551e54d/strace-4.6/process.c:3320:1: error: Unmatched '{'. Configuration: '__GNUC__=1'. [syntaxError] cde-0.1+git9-g551e54d/strace-4.6/sock.c:77:23: style: Variable 'sinp' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/strace-4.6/sock.c:87:15: style: Unused variable: ifr [unusedVariable] cde-0.1+git9-g551e54d/strace-4.6/sock.c:89:14: style: Variable 'str' is assigned a value that is never used. [unreadVariable] cde-0.1+git9-g551e54d/strace-4.6/sock.c:90:17: style: Unused variable: bytes [unusedVariable] cde-0.1+git9-g551e54d/strace-4.6/signal.c:366:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] cde-0.1+git9-g551e54d/strace-4.6/signal.c:854:13: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/okapi.c:417:3: warning: Return value of function vasprintf() is not used. [ignoredReturnValue] cde-0.1+git9-g551e54d/strace-4.6/okapi.c:668:17: warning:inconclusive: Either the condition 'orig_symlink_target' is redundant or there is possible null pointer dereference: orig_symlink_target. [nullPointerRedundantCheck] cde-0.1+git9-g551e54d/strace-4.6/okapi.c:619:7: note: Assuming that condition 'orig_symlink_target' is not redundant cde-0.1+git9-g551e54d/strace-4.6/okapi.c:668:17: note: Null pointer dereference cde-0.1+git9-g551e54d/strace-4.6/okapi.c:78:29: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/okapi.c:89:29: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/okapi.c:777:22: style: Parameter 'src_filename' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/okapi.c:777:42: style: Parameter 'dst_filename' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/term.c:422:3: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] cde-0.1+git9-g551e54d/strace-4.6/term.c:183:17: style: Unused variable: tios [unusedVariable] cde-0.1+git9-g551e54d/strace-4.6/term.c:185:16: style: Unused variable: tio [unusedVariable] cde-0.1+git9-g551e54d/strace-4.6/term.c:192:17: style: Unused variable: ws [unusedVariable] cde-0.1+git9-g551e54d/strace-4.6/term.c:196:6: style: Unused variable: i [unusedVariable] cde-0.1+git9-g551e54d/strace-4.6/syscall.c:444:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] cde-0.1+git9-g551e54d/strace-4.6/syscall.c:309:7: style: Local variable 'i' shadows outer variable [shadowVariable] cde-0.1+git9-g551e54d/strace-4.6/syscall.c:305:6: note: Shadowed declaration cde-0.1+git9-g551e54d/strace-4.6/syscall.c:309:7: note: Shadow variable cde-0.1+git9-g551e54d/strace-4.6/syscall.c:630:8: style: Variable 'func' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/strace-4.6/syscall.c:1332:24: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/syscall.c:1352:27: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/syscall.c:1976:27: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/syscall.c:2783:13: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/syscall.c:2856:30: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/syscall.c:2414:12: style: Variable 'scno_good' is assigned a value that is never used. [unreadVariable] cde-0.1+git9-g551e54d/strace-4.6/syscall.c:2485:15: style: Variable 'sys_res' is assigned a value that is never used. [unreadVariable] cde-0.1+git9-g551e54d/strace-4.6/syscall.c:2405:7: style: Unused variable: u_error [unusedVariable] cde-0.1+git9-g551e54d/tests/at_syscalls_test/at_syscalls_test.c:43:18: error: Invalid fstatat() argument nr 1. The value is -100 but the valid values are '0:'. [invalidFunctionArg] cde-0.1+git9-g551e54d/tests/at_syscalls_test/at_syscalls_test.c:59:38: error: Invalid symlinkat() argument nr 2. The value is -100 but the valid values are '0:'. [invalidFunctionArg] cde-0.1+git9-g551e54d/tests/at_syscalls_test/at_syscalls_test.c:63:21: error: Invalid readlinkat() argument nr 1. The value is -100 but the valid values are '0:'. [invalidFunctionArg] cde-0.1+git9-g551e54d/tests/at_syscalls_test/at_syscalls_test.c:69:12: error: Invalid unlinkat() argument nr 1. The value is -100 but the valid values are '0:'. [invalidFunctionArg] cde-0.1+git9-g551e54d/tests/at_syscalls_test/at_syscalls_test.c:70:12: error: Invalid unlinkat() argument nr 1. The value is -100 but the valid values are '0:'. [invalidFunctionArg] cde-0.1+git9-g551e54d/tests/at_syscalls_test/at_syscalls_test.c:71:12: error: Invalid unlinkat() argument nr 1. The value is -100 but the valid values are '0:'. [invalidFunctionArg] cde-0.1+git9-g551e54d/tests/at_syscalls_test/at_syscalls_test.c:76:12: error: Invalid unlinkat() argument nr 1. The value is -100 but the valid values are '0:'. [invalidFunctionArg] cde-0.1+git9-g551e54d/tests/at_syscalls_test/at_syscalls_test.c:80:12: error: Invalid unlinkat() argument nr 1. The value is -100 but the valid values are '0:'. [invalidFunctionArg] cde-0.1+git9-g551e54d/tests/at_syscalls_test/at_syscalls_test.c:39:3: error: Return value of allocation function 'openat' is not stored. [leakReturnValNotUsed] cde-0.1+git9-g551e54d/tests/path-library-test/paths_test.c:26:3: style: Variable '_x' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/tests/path-library-test/paths_test.c:30:3: style: Variable '_x' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/tests/path-library-test/paths_test.c:34:3: style: Variable '_x' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/tests/path-library-test/paths_test.c:38:3: style: Variable '_x' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/tests/path-library-test/paths_test.c:42:3: style: Variable '_x' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/tests/path-library-test/paths_test.c:46:3: style: Variable '_x' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/strace-4.6/util.c:111:20: style: Condition 'a->tv_sec==b->tv_sec' is always true [knownConditionTrueFalse] cde-0.1+git9-g551e54d/strace-4.6/util.c:110:16: note: Assuming that condition 'a->tv_sec>b->tv_sec' is not redundant cde-0.1+git9-g551e54d/strace-4.6/util.c:107:16: note: Assuming that condition 'a->tv_sectv_sec' is not redundant cde-0.1+git9-g551e54d/strace-4.6/util.c:111:20: note: Condition 'a->tv_sec==b->tv_sec' is always true cde-0.1+git9-g551e54d/strace-4.6/util.c:430:15: style: Condition 'uid==-1' is always false [knownConditionTrueFalse] cde-0.1+git9-g551e54d/strace-4.6/util.c:627:36: style: Condition 'umoven(tcp,addr,size,str)<0' is always false [knownConditionTrueFalse] cde-0.1+git9-g551e54d/strace-4.6/util.c:627:13: note: Calling function 'umoven' returns 0 cde-0.1+git9-g551e54d/strace-4.6/util.c:627:36: note: Condition 'umoven(tcp,addr,size,str)<0' is always false cde-0.1+git9-g551e54d/strace-4.6/util.c:717:43: style: Condition 'umoven(tcp,addr,len,(char*)str)<0' is always false [knownConditionTrueFalse] cde-0.1+git9-g551e54d/strace-4.6/util.c:717:12: note: Calling function 'umoven' returns 0 cde-0.1+git9-g551e54d/strace-4.6/util.c:717:43: note: Condition 'umoven(tcp,addr,len,(char*)str)<0' is always false cde-0.1+git9-g551e54d/strace-4.6/util.c:894:8: style: Condition 'started' is always false [knownConditionTrueFalse] cde-0.1+git9-g551e54d/strace-4.6/util.c:879:16: note: Assignment 'started=0', assigned value is 0 cde-0.1+git9-g551e54d/strace-4.6/util.c:894:8: note: Condition 'started' is always false cde-0.1+git9-g551e54d/strace-4.6/util.c:1054:4: warning: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'signed long'. [invalidPrintfArgType_uint] cde-0.1+git9-g551e54d/strace-4.6/util.c:209:20: style:inconclusive: Function 'ptrace_restart' argument 1 names different: declaration 'request' definition 'op'. [funcArgNamesDifferent] cde-0.1+git9-g551e54d/strace-4.6/defs.h:583:31: note: Function 'ptrace_restart' argument 1 names different: declaration 'request' definition 'op'. cde-0.1+git9-g551e54d/strace-4.6/util.c:209:20: note: Function 'ptrace_restart' argument 1 names different: declaration 'request' definition 'op'. cde-0.1+git9-g551e54d/strace-4.6/util.c:98:17: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/util.c:105:17: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/util.c:105:21: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/util.c:118:17: style: Parameter 'tv' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/util.c:125:22: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/util.c:125:26: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/util.c:137:22: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/util.c:137:26: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/util.c:149:22: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/util.c:159:22: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/util.c:758:20: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/util.c:758:51: style: Parameter 'laddr' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/util.c:847:22: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/util.c:1066:23: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/util.c:1576:13: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/util.c:1632:13: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/strace-4.6/strace.c:353:19: style: Obsolescent function 'vfork' called. It is recommended to use 'fork' instead. [prohibitedvforkCalled] cde-0.1+git9-g551e54d/strace-4.6/strace.c:417:15: style: Obsolescent function 'vfork' called. It is recommended to use 'fork' instead. [prohibitedvforkCalled] cde-0.1+git9-g551e54d/strace-4.6/strace.c:627:23: style: Obsolescent function 'vfork' called. It is recommended to use 'fork' instead. [prohibitedvforkCalled] cde-0.1+git9-g551e54d/strace-4.6/strace.c:1087:15: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] cde-0.1+git9-g551e54d/strace-4.6/strace.c:2967:37: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] cde-0.1+git9-g551e54d/strace-4.6/strace.c:1060:6: style: Condition 'pflag_seen' is always false [knownConditionTrueFalse] cde-0.1+git9-g551e54d/strace-4.6/strace.c:1163:6: style: Condition '!pflag_seen' is always true [knownConditionTrueFalse] cde-0.1+git9-g551e54d/strace-4.6/strace.c:1203:6: style: Condition 'pflag_seen' is always false [knownConditionTrueFalse] cde-0.1+git9-g551e54d/strace-4.6/strace.c:2943:37: style: Condition 'pflag_seen>1' is always false [knownConditionTrueFalse] cde-0.1+git9-g551e54d/strace-4.6/strace.c:393:3: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] cde-0.1+git9-g551e54d/strace-4.6/strace.c:527:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] cde-0.1+git9-g551e54d/strace-4.6/strace.c:1702:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] cde-0.1+git9-g551e54d/strace-4.6/strace.c:1715:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] cde-0.1+git9-g551e54d/strace-4.6/strace.c:1909:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] cde-0.1+git9-g551e54d/strace-4.6/strace.c:1947:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] cde-0.1+git9-g551e54d/strace-4.6/strace.c:2622:4: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] cde-0.1+git9-g551e54d/strace-4.6/strace.c:2649:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] cde-0.1+git9-g551e54d/strace-4.6/strace.c:2701:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] cde-0.1+git9-g551e54d/strace-4.6/strace.c:2708:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] cde-0.1+git9-g551e54d/strace-4.6/strace.c:2726:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] cde-0.1+git9-g551e54d/strace-4.6/strace.c:2731:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] cde-0.1+git9-g551e54d/strace-4.6/strace.c:2888:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] cde-0.1+git9-g551e54d/strace-4.6/strace.c:1217:3: style:inconclusive: Statements following noreturn function 'raise()' will never be executed. [unreachableCode] cde-0.1+git9-g551e54d/strace-4.6/strace.c:1079:18: style: Variable 'pent' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/strace-4.6/strace.c:2598:7: error: Uninitialized variable: pid [legacyUninitvar] cde-0.1+git9-g551e54d/strace-4.6/strace.c:836:9: style: Variable 'pid' is assigned a value that is never used. [unreadVariable] cde-0.1+git9-g551e54d/strace-4.6/strace.c:1745:3: style: Variable 'resumed' is assigned a value that is never used. [unreadVariable] cde-0.1+git9-g551e54d/strace-4.6/strace.c:2792:15: style: Unused variable: si [unusedVariable] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2797:19: warning:inconclusive: The buffer 'newFileName' may not be null-terminated after the call to strncpy(). [terminateStrncpy] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4138:13: style: Condition '1||do_debug_frames_interp' is always true [knownConditionTrueFalse] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:765:4: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:778:4: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:965:4: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:976:4: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:982:4: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:1243:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:1615:6: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3790:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3794:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4005:6: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4283:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4294:3: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4369:3: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4385:3: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4634:3: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2049:6: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:262:19: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:458:17: style: Local variable 'next' shadows outer variable [shadowVariable] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:453:21: note: Shadowed declaration cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:458:17: note: Shadow variable cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2527:15: style: Local variable 'i' shadows outer variable [shadowVariable] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2451:11: note: Shadowed declaration cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2527:15: note: Shadow variable cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2555:15: style: Local variable 'i' shadows outer variable [shadowVariable] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2451:11: note: Shadowed declaration cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2555:15: note: Shadow variable cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2649:30: style: Local variable 'bytes_read' shadows outer variable [shadowVariable] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2628:24: note: Shadowed declaration cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2649:30: note: Shadow variable cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4147:27: style: Local variable 'tmp' shadows outer variable [shadowVariable] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4142:19: note: Shadowed declaration cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4147:27: note: Shadow variable cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:239:29: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:305:18: style: Variable 'name' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:405:25: style: Variable 'section' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:526:62: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:706:31: style: Parameter 'section' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:711:18: style: Variable 'end' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:1140:19: style: Variable 'orig_data' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:1821:18: style: Variable 'end' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2151:41: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2153:18: style: Variable 'start' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2162:22: style: Variable 'end_of_sequence' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2276:23: style: Variable 'name' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2435:52: style: Parameter 'section' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2437:24: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2447:22: style: Variable 'end_of_sequence' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2885:18: style: Variable 'end' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2976:46: style: Parameter 'section' can be declared as pointer to const. However it seems that 'display_debug_macinfo' is a callback function, if 'section' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4935:5: note: You might need to cast the function pointer here cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2976:46: note: Parameter 'section' can be declared as pointer to const cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2980:18: style: Variable 'end' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3052:45: style: Parameter 'section' can be declared as pointer to const. However it seems that 'display_debug_abbrev' is a callback function, if 'section' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4921:5: note: You might need to cast the function pointer here cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3052:45: note: Parameter 'section' can be declared as pointer to const cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3098:18: style: Variable 'section_end' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3312:42: style: Parameter 'section' can be declared as pointer to const. However it seems that 'display_debug_str' is a callback function, if 'section' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4937:5: note: You might need to cast the function pointer here cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3312:42: note: Parameter 'section' can be declared as pointer to const cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3313:17: style: Parameter 'ATTRIBUTE_UNUSED' can be declared as pointer to const. However it seems that 'display_debug_str' is a callback function, if 'ATTRIBUTE_UNUSED' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4937:5: note: You might need to cast the function pointer here cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3313:17: note: Parameter 'ATTRIBUTE_UNUSED' can be declared as pointer to const cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3381:18: style: Variable 'end' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3526:18: style: Variable 'section_end' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3586:19: style: Variable 'debug_info_p' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3799:33: style: Parameter 'fc' can be declared as pointer to const [constParameterPointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4057:19: style: Variable 'look_for' can be declared as pointer to const [constVariablePointer] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4678:52: style: Parameter 'section' can be declared as pointer to const. However it seems that 'display_debug_not_supported' is a callback function, if 'section' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4951:5: note: You might need to cast the function pointer here cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4678:52: note: Parameter 'section' can be declared as pointer to const cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4679:20: style: Parameter 'ATTRIBUTE_UNUSED' can be declared as pointer to const. However it seems that 'display_debug_not_supported' is a callback function, if 'ATTRIBUTE_UNUSED' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4951:5: note: You might need to cast the function pointer here cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4679:20: note: Parameter 'ATTRIBUTE_UNUSED' can be declared as pointer to const cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:262:19: warning: Shifting signed 64-bit value by 63 bits is undefined behaviour. See condition at line 261. [shiftTooManyBitsSigned] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:261:22: note: Assuming that condition 'shift<8*sizeof(result)' is not redundant cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:262:19: note: Shift cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2454:30: style: Variable 'prev_line' is assigned a value that is never used. [unreadVariable] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2596:13: style: Variable 'i' is assigned a value that is never used. [unreadVariable] diff: 2.13.0 cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:262:19: portability: Shifting signed 64-bit value by 63 bits is implementation-defined behaviour. See condition at line 261. [shiftTooManyBitsSigned] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:261:22: note: Assuming that condition 'shift<8*sizeof(result)' is not redundant cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:262:19: note: Shift head cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:262:19: warning: Shifting signed 64-bit value by 63 bits is undefined behaviour. See condition at line 261. [shiftTooManyBitsSigned] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:261:22: note: Assuming that condition 'shift<8*sizeof(result)' is not redundant cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:262:19: note: Shift head cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3052:45: style: Parameter 'section' can be declared as pointer to const. However it seems that 'display_debug_abbrev' is a callback function, if 'section' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4921:5: note: You might need to cast the function pointer here cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3052:45: note: Parameter 'section' can be declared as pointer to const head cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3313:17: style: Parameter 'ATTRIBUTE_UNUSED' can be declared as pointer to const. However it seems that 'display_debug_str' is a callback function, if 'ATTRIBUTE_UNUSED' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4937:5: note: You might need to cast the function pointer here cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3313:17: note: Parameter 'ATTRIBUTE_UNUSED' can be declared as pointer to const head cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:405:25: style: Variable 'section' can be declared as pointer to const [constVariablePointer] head cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4138:13: style: Condition '1||do_debug_frames_interp' is always true [knownConditionTrueFalse] head cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4679:20: style: Parameter 'ATTRIBUTE_UNUSED' can be declared as pointer to const. However it seems that 'display_debug_not_supported' is a callback function, if 'ATTRIBUTE_UNUSED' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4951:5: note: You might need to cast the function pointer here cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4679:20: note: Parameter 'ATTRIBUTE_UNUSED' can be declared as pointer to const 2.13.0 cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:693:3: style: Variable 'sep' can be declared as pointer to const [constVariablePointer] head cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:985:19: style: Parameter 'ATTRIBUTE_UNUSED' can be declared as pointer to const. However it seems that 'unw_decode_b1' is a callback function, if 'ATTRIBUTE_UNUSED' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:1066:7: note: You might need to cast the function pointer here cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:985:19: note: Parameter 'ATTRIBUTE_UNUSED' can be declared as pointer to const head cde-0.1+git9-g551e54d/strace-4.6/signal.c:854:13: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] head cde-0.1+git9-g551e54d/strace-4.6/strace.c:2598:7: error: Uninitialized variable: pid [legacyUninitvar] 2.13.0 cde-0.1+git9-g551e54d/strace-4.6/strace.c:2598:7: error: Uninitialized variable: pid [uninitvar] cde-0.1+git9-g551e54d/strace-4.6/strace.c:2564:7: note: Assuming condition is false cde-0.1+git9-g551e54d/strace-4.6/strace.c:2598:7: note: Uninitialized variable: pid head cde-0.1+git9-g551e54d/strace-4.6/syscall.c:1352:27: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] head cde-0.1+git9-g551e54d/strace-4.6/syscall.c:1976:27: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] head cde-0.1+git9-g551e54d/strace-4.6/syscall.c:2783:13: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] head cde-0.1+git9-g551e54d/strace-4.6/syscall.c:2856:30: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] head cde-0.1+git9-g551e54d/strace-4.6/util.c:1066:23: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] head cde-0.1+git9-g551e54d/strace-4.6/util.c:1576:13: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] head cde-0.1+git9-g551e54d/strace-4.6/util.c:1632:13: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] head cde-0.1+git9-g551e54d/strace-4.6/util.c:758:20: style: Parameter 'tcp' can be declared as pointer to const [constParameterPointer] head cde-0.1+git9-g551e54d/strace-4.6/util.c:758:51: style: Parameter 'laddr' can be declared as pointer to const [constParameterPointer] 2.13.0 cde-0.1+git9-g551e54d/tests/path-library-test/paths_test.c:26:3: style: Variable '_y' can be declared as pointer to const [constVariablePointer] 2.13.0 cde-0.1+git9-g551e54d/tests/path-library-test/paths_test.c:30:3: style: Variable '_y' can be declared as pointer to const [constVariablePointer] 2.13.0 cde-0.1+git9-g551e54d/tests/path-library-test/paths_test.c:34:3: style: Variable '_y' can be declared as pointer to const [constVariablePointer] 2.13.0 cde-0.1+git9-g551e54d/tests/path-library-test/paths_test.c:38:3: style: Variable '_y' can be declared as pointer to const [constVariablePointer] 2.13.0 cde-0.1+git9-g551e54d/tests/path-library-test/paths_test.c:42:3: style: Variable '_y' can be declared as pointer to const [constVariablePointer] 2.13.0 cde-0.1+git9-g551e54d/tests/path-library-test/paths_test.c:46:3: style: Variable '_y' can be declared as pointer to const [constVariablePointer] DONE