2022-06-27 02:54 ftp://ftp.de.debian.org/debian/pool/main/d/diffutils/diffutils_3.7.orig.tar.xz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j1 platform: Linux-5.10.0-9-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.25 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.8 head-info: 242afc3 (2022-06-25 21:42:55 +0200) count: 262 260 elapsed-time: 26.6 31.3 head-timing-info: Tokenizer::simplifyTokens1: 25.0553s (avg. 0.0879135s - 285 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 22.9074s (avg. 0.08066s - 284 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 1.48446s (avg. 0.00522696s - 284 result(s)) Tokenizer::createTokens: 0.360819s (avg. 0.00105195s - 343 result(s)) Other::runChecks: 0.21271s (avg. 0.000748979s - 284 result(s)) Overall time: 50.9007s old-timing-info: Tokenizer::simplifyTokens1: 29.8214s (avg. 0.104636s - 285 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 27.3835s (avg. 0.0964206s - 284 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 1.7828s (avg. 0.00627748s - 284 result(s)) Tokenizer::createTokens: 0.357393s (avg. 0.00104196s - 343 result(s)) Other::runChecks: 0.213706s (avg. 0.000752486s - 284 result(s)) Overall time: 60.4143s head results: diffutils-3.7/gnulib-tests/inet_pton.c:152:16: error: Uninitialized variable: tmp [uninitvar] diffutils-3.7/gnulib-tests/inet_pton.c:150:14: note: Assuming condition is false diffutils-3.7/gnulib-tests/inet_pton.c:152:16: note: Uninitialized variable: tmp diffutils-3.7/gnulib-tests/pipe.c:48:0: error: #error "This platform lacks a pipe function, and Gnulib doesn't provide a replacement. This is a bug in Gnulib." [preprocessorErrorDirective] diffutils-3.7/gnulib-tests/sleep.c:74:0: error: #error "Please port gnulib sleep.c to your platform, possibly using usleep() or select(), then report this to bug-gnulib." [preprocessorErrorDirective] diffutils-3.7/gnulib-tests/test-accept.c:42:5: error: Invalid accept() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] diffutils-3.7/gnulib-tests/test-bind.c:46:7: error: Invalid bind() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] diffutils-3.7/gnulib-tests/test-cloexec.c:57:0: error: #error Please port fcntl to your platform [preprocessorErrorDirective] diffutils-3.7/gnulib-tests/test-close.c:34:5: error: Invalid close() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] diffutils-3.7/gnulib-tests/test-connect.c:46:7: error: Invalid connect() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] diffutils-3.7/gnulib-tests/test-dup2.c:64:0: error: #error Please port fcntl to your platform [preprocessorErrorDirective] diffutils-3.7/gnulib-tests/test-fcntl.c:64:0: error: #error Please port fcntl to your platform [preprocessorErrorDirective] diffutils-3.7/gnulib-tests/test-fdopen.c:41:13: error: Return value of allocation function 'fdopen' is not stored. [leakReturnValNotUsed] diffutils-3.7/gnulib-tests/test-fgetc.c:71:25: error: Invalid fdopen() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] diffutils-3.7/gnulib-tests/test-fnmatch.c:33:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] diffutils-3.7/gnulib-tests/test-fnmatch.c:35:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] diffutils-3.7/gnulib-tests/test-fnmatch.c:36:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] diffutils-3.7/gnulib-tests/test-fnmatch.c:37:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] diffutils-3.7/gnulib-tests/test-fnmatch.c:38:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] diffutils-3.7/gnulib-tests/test-fnmatch.c:39:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] diffutils-3.7/gnulib-tests/test-fnmatch.c:40:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] diffutils-3.7/gnulib-tests/test-fnmatch.c:41:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] diffutils-3.7/gnulib-tests/test-fnmatch.c:43:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] diffutils-3.7/gnulib-tests/test-fnmatch.c:45:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] diffutils-3.7/gnulib-tests/test-fnmatch.c:46:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] diffutils-3.7/gnulib-tests/test-fnmatch.c:47:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] diffutils-3.7/gnulib-tests/test-fnmatch.c:53:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] diffutils-3.7/gnulib-tests/test-fnmatch.c:33:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] diffutils-3.7/gnulib-tests/test-fnmatch.c:35:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] diffutils-3.7/gnulib-tests/test-fnmatch.c:36:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] diffutils-3.7/gnulib-tests/test-fnmatch.c:37:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] diffutils-3.7/gnulib-tests/test-fnmatch.c:38:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] diffutils-3.7/gnulib-tests/test-fnmatch.c:39:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] diffutils-3.7/gnulib-tests/test-fnmatch.c:40:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] diffutils-3.7/gnulib-tests/test-fnmatch.c:41:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] diffutils-3.7/gnulib-tests/test-fnmatch.c:43:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] diffutils-3.7/gnulib-tests/test-fnmatch.c:45:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] diffutils-3.7/gnulib-tests/test-fnmatch.c:46:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] diffutils-3.7/gnulib-tests/test-fnmatch.c:47:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] diffutils-3.7/gnulib-tests/test-fnmatch.c:53:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] diffutils-3.7/gnulib-tests/test-fputc.c:63:25: error: Invalid fdopen() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] diffutils-3.7/gnulib-tests/test-fread.c:72:25: error: Invalid fdopen() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] diffutils-3.7/gnulib-tests/test-freopen-safer.c:57:3: error: Return value of allocation function 'freopen' is not stored. [leakReturnValNotUsed] diffutils-3.7/gnulib-tests/test-freopen-safer.c:78:3: error: Return value of allocation function 'freopen' is not stored. [leakReturnValNotUsed] diffutils-3.7/gnulib-tests/test-freopen-safer.c:87:3: error: Return value of allocation function 'freopen' is not stored. [leakReturnValNotUsed] diffutils-3.7/gnulib-tests/test-freopen-safer.c:93:3: error: Return value of allocation function 'freopen' is not stored. [leakReturnValNotUsed] diffutils-3.7/gnulib-tests/test-fstat.c:37:5: error: Invalid fstat() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] diffutils-3.7/gnulib-tests/test-ftruncate.c:30:23: style: Parameter 'argv' can be declared as const array [constParameter] diffutils-3.7/gnulib-tests/test-fwrite.c:64:25: error: Invalid fdopen() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] diffutils-3.7/gnulib-tests/test-getopt_long.h:1586:9: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] diffutils-3.7/gnulib-tests/test-getopt_long.h:1583:29: note: outer condition: non_options_count==2 diffutils-3.7/gnulib-tests/test-getopt_long.h:1586:9: note: opposite inner condition: !(non_options_count==2) diffutils-3.7/gnulib-tests/test-getopt_long.h:108:56: warning: Possible null pointer dereference: longopts [nullPointer] diffutils-3.7/gnulib-tests/test-getopt_long.h:331:43: note: Calling function 'do_getopt_long', 4th argument 'NULL' value is 0 diffutils-3.7/gnulib-tests/test-getopt_long.h:108:56: note: Null pointer dereference diffutils-3.7/gnulib-tests/test-getopt.h:92:11: style: Redundant initialization for 'posixly'. The initialized value is overwritten before it is read. [redundantInitialization] diffutils-3.7/gnulib-tests/test-getopt.h:86:16: note: posixly is initialized diffutils-3.7/gnulib-tests/test-getopt.h:92:11: note: posixly is overwritten diffutils-3.7/gnulib-tests/test-getopt.h:98:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:98:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:99:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:99:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:130:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:130:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:131:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:131:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:163:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:163:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:164:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:164:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:195:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:195:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:196:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:196:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:230:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:230:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:231:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:231:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:261:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:261:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:262:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:262:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:293:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:293:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:294:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:294:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:429:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:429:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:430:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:430:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:463:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:463:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:464:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:464:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:497:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:497:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:498:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:498:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:531:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:531:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:532:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:532:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:565:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:565:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:566:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:566:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:599:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:599:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:600:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:600:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:635:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:635:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:636:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:636:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:665:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:665:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:666:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:666:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:695:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:695:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:696:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:696:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:727:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:727:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:728:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:728:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:794:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:794:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:795:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:795:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:1198:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:1198:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-getopt.h:1199:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration diffutils-3.7/gnulib-tests/test-getopt.h:1199:11: note: Shadow variable diffutils-3.7/gnulib-tests/test-gettimeofday.c:38:8: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] diffutils-3.7/gnulib-tests/test-ignore-value.c:34:16: style: struct member 's::i' is never used. [unusedStructMember] diffutils-3.7/gnulib-tests/test-ignore-value.c:68:19: style: Variable 's1' is not assigned a value. [unassignedVariable] diffutils-3.7/gnulib-tests/test-intprops.c:192:3: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] diffutils-3.7/gnulib-tests/test-intprops.c:193:3: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] diffutils-3.7/gnulib-tests/test-intprops.c:198:3: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] diffutils-3.7/gnulib-tests/test-intprops.c:201:3: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] diffutils-3.7/gnulib-tests/test-listen.c:38:5: error: Invalid listen() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] diffutils-3.7/gnulib-tests/test-memchr.c:101:23: style: Condition 'page_boundary!=NULL' is always false [knownConditionTrueFalse] diffutils-3.7/gnulib-tests/test-memchr.c:96:27: note: Assignment 'page_boundary=(char*)zerosize_ptr()', assigned value is 0 diffutils-3.7/gnulib-tests/test-memchr.c:101:23: note: Condition 'page_boundary!=NULL' is always false diffutils-3.7/gnulib-tests/test-memchr.c:52:3: error: Null pointer dereference [nullPointer] diffutils-3.7/gnulib-tests/test-nl_langinfo.c:61:3: style: Unsigned expression 'strlen(nl_langinfo(THOUSEP))' can't be negative so it is unnecessary to test it. [unsignedPositive] diffutils-3.7/gnulib-tests/test-nl_langinfo.c:133:3: style: Unsigned expression 'strlen(nl_langinfo(ERA))' can't be negative so it is unnecessary to test it. [unsignedPositive] diffutils-3.7/gnulib-tests/test-nl_langinfo.c:134:3: style: Unsigned expression 'strlen(nl_langinfo(ERA_D_FMT))' can't be negative so it is unnecessary to test it. [unsignedPositive] diffutils-3.7/gnulib-tests/test-nl_langinfo.c:135:3: style: Unsigned expression 'strlen(nl_langinfo(ERA_D_T_FMT))' can't be negative so it is unnecessary to test it. [unsignedPositive] diffutils-3.7/gnulib-tests/test-nl_langinfo.c:136:3: style: Unsigned expression 'strlen(nl_langinfo(ERA_T_FMT))' can't be negative so it is unnecessary to test it. [unsignedPositive] diffutils-3.7/gnulib-tests/test-nl_langinfo.c:141:5: style: Unsigned expression 'strlen(currency)' can't be negative so it is unnecessary to test it. [unsignedPositive] diffutils-3.7/gnulib-tests/test-nstrftime.c:60:23: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] diffutils-3.7/gnulib-tests/test-pipe.c:53:0: error: #error Please port fcntl to your platform [preprocessorErrorDirective] diffutils-3.7/gnulib-tests/test-quotearg-simple.c:336:9: style: Condition 'z' is always false [knownConditionTrueFalse] diffutils-3.7/gnulib-tests/test-quotearg-simple.c:334:28: note: Assignment 'z=zerosize_ptr()', assigned value is 0 diffutils-3.7/gnulib-tests/test-quotearg-simple.c:336:9: note: Condition 'z' is always false diffutils-3.7/gnulib-tests/test-raise.c:49:3: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] diffutils-3.7/gnulib-tests/test-rawmemchr.c:80:9: style: Condition '!page_boundary' is always true [knownConditionTrueFalse] diffutils-3.7/gnulib-tests/test-rawmemchr.c:77:27: note: Assignment 'page_boundary=(char*)zerosize_ptr()', assigned value is 0 diffutils-3.7/gnulib-tests/test-rawmemchr.c:80:9: note: Condition '!page_boundary' is always true diffutils-3.7/gnulib-tests/test-regex.c:113:15: error: Memory pointed to by 'start' is freed twice. [doubleFree] diffutils-3.7/gnulib-tests/test-regex.c:73:13: note: Memory pointed to by 'start' is freed twice. diffutils-3.7/gnulib-tests/test-regex.c:113:15: note: Memory pointed to by 'start' is freed twice. diffutils-3.7/gnulib-tests/test-regex.c:114:15: error: Memory pointed to by 'end' is freed twice. [doubleFree] diffutils-3.7/gnulib-tests/test-regex.c:74:13: note: Memory pointed to by 'end' is freed twice. diffutils-3.7/gnulib-tests/test-regex.c:114:15: note: Memory pointed to by 'end' is freed twice. diffutils-3.7/gnulib-tests/test-regex.c:135:7: error: Memory pointed to by 'start' is freed twice. [doubleFree] diffutils-3.7/gnulib-tests/test-regex.c:73:13: note: Memory pointed to by 'start' is freed twice. diffutils-3.7/gnulib-tests/test-regex.c:135:7: note: Memory pointed to by 'start' is freed twice. diffutils-3.7/gnulib-tests/test-regex.c:136:7: error: Memory pointed to by 'end' is freed twice. [doubleFree] diffutils-3.7/gnulib-tests/test-regex.c:74:13: note: Memory pointed to by 'end' is freed twice. diffutils-3.7/gnulib-tests/test-regex.c:136:7: note: Memory pointed to by 'end' is freed twice. diffutils-3.7/gnulib-tests/test-setlocale1.c:45:5: error: Memory leak: name1 [memleak] diffutils-3.7/gnulib-tests/test-setlocale1.c:51:5: error: Memory leak: name1 [memleak] diffutils-3.7/gnulib-tests/test-snprintf.c:53:20: style: The if condition is the same as the previous if condition [duplicateCondition] diffutils-3.7/gnulib-tests/test-snprintf.c:47:20: note: First condition diffutils-3.7/gnulib-tests/test-snprintf.c:53:20: note: Second condition diffutils-3.7/gnulib-tests/test-stdalign.c:38:0: error: #error "alignof is not a macro" [preprocessorErrorDirective] diffutils-3.7/gnulib-tests/test-stddef.c:39:8: style: struct member 'd::e' is never used. [unusedStructMember] diffutils-3.7/gnulib-tests/test-stddef.c:40:8: style: struct member 'd::f' is never used. [unusedStructMember] diffutils-3.7/gnulib-tests/test-strnlen.c:35:7: style: Condition '!page_boundary' is always true [knownConditionTrueFalse] diffutils-3.7/gnulib-tests/test-strnlen.c:34:25: note: Assignment 'page_boundary=(char*)zerosize_ptr()', assigned value is 0 diffutils-3.7/gnulib-tests/test-strnlen.c:35:7: note: Condition '!page_boundary' is always true diffutils-3.7/gnulib-tests/test-unsetenv.c:40:12: style: Variable 'entry[0]' is assigned a value that is never used. [unreadVariable] diffutils-3.7/gnulib-tests/test-verify.c:55:13: style: Same expression on both sides of '=='. [duplicateExpression] diffutils-3.7/gnulib-tests/test-verify.c:58:35: style: Same expression on both sides of '=='. [duplicateExpression] diffutils-3.7/lib/alloca.c:122:8: style: union member 'hdr::align' is never used. [unusedStructMember] diffutils-3.7/lib/xalloc.h:27:0: error: #error "Please include config.h first." [preprocessorErrorDirective] diffutils-3.7/lib/binary-io.h:29:0: error: #error "Please include config.h first." [preprocessorErrorDirective] diffutils-3.7/lib/bitrotate.h:27:0: error: #error "Please include config.h first." [preprocessorErrorDirective] diffutils-3.7/lib/c-ctype.h:29:0: error: #error "Please include config.h first." [preprocessorErrorDirective] diffutils-3.7/lib/careadlinkat.c:135:18: error:inconclusive: Returning pointer to local variable 'stack_buf' that will be invalid when returning. [returnDanglingLifetime] diffutils-3.7/lib/careadlinkat.c:84:16: note: Array decayed to pointer here. diffutils-3.7/lib/careadlinkat.c:130:53: note: Passed to initializer list. diffutils-3.7/lib/careadlinkat.c:73:8: note: Variable created here. diffutils-3.7/lib/careadlinkat.c:135:18: note: Returning pointer to local variable 'stack_buf' that will be invalid when returning. diffutils-3.7/lib/careadlinkat.c:121:24: style: Variable 'buf_size' is assigned a value that is never used. [unreadVariable] diffutils-3.7/lib/dirname-lgpl.c:38:35: style: Condition 'prefix_length!=0' is always false [knownConditionTrueFalse] diffutils-3.7/lib/dirname-lgpl.c:34:26: note: Assignment 'prefix_length=0', assigned value is 0 diffutils-3.7/lib/dirname-lgpl.c:38:35: note: Condition 'prefix_length!=0' is always false diffutils-3.7/lib/error.c:142:0: error: #error Please port fcntl to your platform [preprocessorErrorDirective] diffutils-3.7/lib/mbchar.h:160:0: error: #error "Please include config.h first." [preprocessorErrorDirective] diffutils-3.7/lib/fnmatch_loop.c:1096:13: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] diffutils-3.7/lib/fnmatch_loop.c:1104:13: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] diffutils-3.7/lib/fnmatch_loop.c:977:38: style: Condition 'n!=string_end' is always true [knownConditionTrueFalse] diffutils-3.7/lib/fnmatch_loop.c:987:18: style:inconclusive: Function 'end_pattern' argument 1 names different: declaration 'patternp' definition 'pattern'. [funcArgNamesDifferent] diffutils-3.7/lib/fnmatch_loop.c:22:37: note: Function 'end_pattern' argument 1 names different: declaration 'patternp' definition 'pattern'. diffutils-3.7/lib/fnmatch_loop.c:987:18: note: Function 'end_pattern' argument 1 names different: declaration 'patternp' definition 'pattern'. diffutils-3.7/lib/fnmatch_loop.c:1125:44: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] diffutils-3.7/lib/fnmatch_loop.c:1133:26: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] diffutils-3.7/lib/fnmatch_loop.c:1141:33: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] diffutils-3.7/lib/fnmatch_loop.c:1162:40: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] diffutils-3.7/lib/fnmatch_loop.c:1177:44: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] diffutils-3.7/lib/fnmatch_loop.c:1186:46: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] diffutils-3.7/lib/freopen-safer.c:52:3: error: Resource leak: value [resourceLeak] diffutils-3.7/lib/stat-time.h:31:0: error: #error "Please include config.h first." [preprocessorErrorDirective] diffutils-3.7/lib/getopt.c:471:25: style:inconclusive: Function '_getopt_internal_r' argument 1 names different: declaration '___argc' definition 'argc'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:101:36: note: Function '_getopt_internal_r' argument 1 names different: declaration '___argc' definition 'argc'. diffutils-3.7/lib/getopt.c:471:25: note: Function '_getopt_internal_r' argument 1 names different: declaration '___argc' definition 'argc'. diffutils-3.7/lib/getopt.c:471:38: style:inconclusive: Function '_getopt_internal_r' argument 2 names different: declaration '___argv' definition 'argv'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:101:52: note: Function '_getopt_internal_r' argument 2 names different: declaration '___argv' definition 'argv'. diffutils-3.7/lib/getopt.c:471:38: note: Function '_getopt_internal_r' argument 2 names different: declaration '___argv' definition 'argv'. diffutils-3.7/lib/getopt.c:471:56: style:inconclusive: Function '_getopt_internal_r' argument 3 names different: declaration '__shortopts' definition 'optstring'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:102:23: note: Function '_getopt_internal_r' argument 3 names different: declaration '__shortopts' definition 'optstring'. diffutils-3.7/lib/getopt.c:471:56: note: Function '_getopt_internal_r' argument 3 names different: declaration '__shortopts' definition 'optstring'. diffutils-3.7/lib/getopt.c:472:28: style:inconclusive: Function '_getopt_internal_r' argument 4 names different: declaration '__longopts' definition 'longopts'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:103:32: note: Function '_getopt_internal_r' argument 4 names different: declaration '__longopts' definition 'longopts'. diffutils-3.7/lib/getopt.c:472:28: note: Function '_getopt_internal_r' argument 4 names different: declaration '__longopts' definition 'longopts'. diffutils-3.7/lib/getopt.c:472:43: style:inconclusive: Function '_getopt_internal_r' argument 5 names different: declaration '__longind' definition 'longind'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:103:49: note: Function '_getopt_internal_r' argument 5 names different: declaration '__longind' definition 'longind'. diffutils-3.7/lib/getopt.c:472:43: note: Function '_getopt_internal_r' argument 5 names different: declaration '__longind' definition 'longind'. diffutils-3.7/lib/getopt.c:473:11: style:inconclusive: Function '_getopt_internal_r' argument 6 names different: declaration '__long_only' definition 'long_only'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:104:15: note: Function '_getopt_internal_r' argument 6 names different: declaration '__long_only' definition 'long_only'. diffutils-3.7/lib/getopt.c:473:11: note: Function '_getopt_internal_r' argument 6 names different: declaration '__long_only' definition 'long_only'. diffutils-3.7/lib/getopt.c:473:43: style:inconclusive: Function '_getopt_internal_r' argument 7 names different: declaration '__data' definition 'd'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:104:49: note: Function '_getopt_internal_r' argument 7 names different: declaration '__data' definition 'd'. diffutils-3.7/lib/getopt.c:473:43: note: Function '_getopt_internal_r' argument 7 names different: declaration '__data' definition 'd'. diffutils-3.7/lib/getopt.c:473:50: style:inconclusive: Function '_getopt_internal_r' argument 8 names different: declaration '__posixly_correct' definition 'posixly_correct'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:105:15: note: Function '_getopt_internal_r' argument 8 names different: declaration '__posixly_correct' definition 'posixly_correct'. diffutils-3.7/lib/getopt.c:473:50: note: Function '_getopt_internal_r' argument 8 names different: declaration '__posixly_correct' definition 'posixly_correct'. diffutils-3.7/lib/getopt.c:703:23: style:inconclusive: Function '_getopt_internal' argument 1 names different: declaration '___argc' definition 'argc'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:25:34: note: Function '_getopt_internal' argument 1 names different: declaration '___argc' definition 'argc'. diffutils-3.7/lib/getopt.c:703:23: note: Function '_getopt_internal' argument 1 names different: declaration '___argc' definition 'argc'. diffutils-3.7/lib/getopt.c:703:36: style:inconclusive: Function '_getopt_internal' argument 2 names different: declaration '___argv' definition 'argv'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:25:50: note: Function '_getopt_internal' argument 2 names different: declaration '___argv' definition 'argv'. diffutils-3.7/lib/getopt.c:703:36: note: Function '_getopt_internal' argument 2 names different: declaration '___argv' definition 'argv'. diffutils-3.7/lib/getopt.c:703:54: style:inconclusive: Function '_getopt_internal' argument 3 names different: declaration '__shortopts' definition 'optstring'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:26:21: note: Function '_getopt_internal' argument 3 names different: declaration '__shortopts' definition 'optstring'. diffutils-3.7/lib/getopt.c:703:54: note: Function '_getopt_internal' argument 3 names different: declaration '__shortopts' definition 'optstring'. diffutils-3.7/lib/getopt.c:704:26: style:inconclusive: Function '_getopt_internal' argument 4 names different: declaration '__longopts' definition 'longopts'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:27:30: note: Function '_getopt_internal' argument 4 names different: declaration '__longopts' definition 'longopts'. diffutils-3.7/lib/getopt.c:704:26: note: Function '_getopt_internal' argument 4 names different: declaration '__longopts' definition 'longopts'. diffutils-3.7/lib/getopt.c:704:41: style:inconclusive: Function '_getopt_internal' argument 5 names different: declaration '__longind' definition 'longind'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:27:47: note: Function '_getopt_internal' argument 5 names different: declaration '__longind' definition 'longind'. diffutils-3.7/lib/getopt.c:704:41: note: Function '_getopt_internal' argument 5 names different: declaration '__longind' definition 'longind'. diffutils-3.7/lib/getopt.c:704:54: style:inconclusive: Function '_getopt_internal' argument 6 names different: declaration '__long_only' definition 'long_only'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:28:13: note: Function '_getopt_internal' argument 6 names different: declaration '__long_only' definition 'long_only'. diffutils-3.7/lib/getopt.c:704:54: note: Function '_getopt_internal' argument 6 names different: declaration '__long_only' definition 'long_only'. diffutils-3.7/lib/getopt.c:705:9: style:inconclusive: Function '_getopt_internal' argument 7 names different: declaration '__posixly_correct' definition 'posixly_correct'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:28:30: note: Function '_getopt_internal' argument 7 names different: declaration '__posixly_correct' definition 'posixly_correct'. diffutils-3.7/lib/getopt.c:705:9: note: Function '_getopt_internal' argument 7 names different: declaration '__posixly_correct' definition 'posixly_correct'. diffutils-3.7/lib/getopt1.c:36:21: style:inconclusive: Function '_getopt_long_r' argument 1 names different: declaration '___argc' definition 'argc'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:107:32: note: Function '_getopt_long_r' argument 1 names different: declaration '___argc' definition 'argc'. diffutils-3.7/lib/getopt1.c:36:21: note: Function '_getopt_long_r' argument 1 names different: declaration '___argc' definition 'argc'. diffutils-3.7/lib/getopt1.c:36:34: style:inconclusive: Function '_getopt_long_r' argument 2 names different: declaration '___argv' definition 'argv'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:107:48: note: Function '_getopt_long_r' argument 2 names different: declaration '___argv' definition 'argv'. diffutils-3.7/lib/getopt1.c:36:34: note: Function '_getopt_long_r' argument 2 names different: declaration '___argv' definition 'argv'. diffutils-3.7/lib/getopt1.c:36:52: style:inconclusive: Function '_getopt_long_r' argument 3 names different: declaration '__shortopts' definition 'options'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:108:19: note: Function '_getopt_long_r' argument 3 names different: declaration '__shortopts' definition 'options'. diffutils-3.7/lib/getopt1.c:36:52: note: Function '_getopt_long_r' argument 3 names different: declaration '__shortopts' definition 'options'. diffutils-3.7/lib/getopt1.c:37:24: style:inconclusive: Function '_getopt_long_r' argument 4 names different: declaration '__longopts' definition 'long_options'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:109:28: note: Function '_getopt_long_r' argument 4 names different: declaration '__longopts' definition 'long_options'. diffutils-3.7/lib/getopt1.c:37:24: note: Function '_getopt_long_r' argument 4 names different: declaration '__longopts' definition 'long_options'. diffutils-3.7/lib/getopt1.c:37:43: style:inconclusive: Function '_getopt_long_r' argument 5 names different: declaration '__longind' definition 'opt_index'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:109:45: note: Function '_getopt_long_r' argument 5 names different: declaration '__longind' definition 'opt_index'. diffutils-3.7/lib/getopt1.c:37:43: note: Function '_getopt_long_r' argument 5 names different: declaration '__longind' definition 'opt_index'. diffutils-3.7/lib/getopt1.c:38:24: style:inconclusive: Function '_getopt_long_r' argument 6 names different: declaration '__data' definition 'd'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:110:28: note: Function '_getopt_long_r' argument 6 names different: declaration '__data' definition 'd'. diffutils-3.7/lib/getopt1.c:38:24: note: Function '_getopt_long_r' argument 6 names different: declaration '__data' definition 'd'. diffutils-3.7/lib/getopt1.c:59:26: style:inconclusive: Function '_getopt_long_only_r' argument 1 names different: declaration '___argc' definition 'argc'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:112:37: note: Function '_getopt_long_only_r' argument 1 names different: declaration '___argc' definition 'argc'. diffutils-3.7/lib/getopt1.c:59:26: note: Function '_getopt_long_only_r' argument 1 names different: declaration '___argc' definition 'argc'. diffutils-3.7/lib/getopt1.c:59:39: style:inconclusive: Function '_getopt_long_only_r' argument 2 names different: declaration '___argv' definition 'argv'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:112:53: note: Function '_getopt_long_only_r' argument 2 names different: declaration '___argv' definition 'argv'. diffutils-3.7/lib/getopt1.c:59:39: note: Function '_getopt_long_only_r' argument 2 names different: declaration '___argv' definition 'argv'. diffutils-3.7/lib/getopt1.c:59:57: style:inconclusive: Function '_getopt_long_only_r' argument 3 names different: declaration '__shortopts' definition 'options'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:113:17: note: Function '_getopt_long_only_r' argument 3 names different: declaration '__shortopts' definition 'options'. diffutils-3.7/lib/getopt1.c:59:57: note: Function '_getopt_long_only_r' argument 3 names different: declaration '__shortopts' definition 'options'. diffutils-3.7/lib/getopt1.c:60:29: style:inconclusive: Function '_getopt_long_only_r' argument 4 names different: declaration '__longopts' definition 'long_options'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:114:26: note: Function '_getopt_long_only_r' argument 4 names different: declaration '__longopts' definition 'long_options'. diffutils-3.7/lib/getopt1.c:60:29: note: Function '_getopt_long_only_r' argument 4 names different: declaration '__longopts' definition 'long_options'. diffutils-3.7/lib/getopt1.c:60:48: style:inconclusive: Function '_getopt_long_only_r' argument 5 names different: declaration '__longind' definition 'opt_index'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:115:10: note: Function '_getopt_long_only_r' argument 5 names different: declaration '__longind' definition 'opt_index'. diffutils-3.7/lib/getopt1.c:60:48: note: Function '_getopt_long_only_r' argument 5 names different: declaration '__longind' definition 'opt_index'. diffutils-3.7/lib/getopt1.c:61:29: style:inconclusive: Function '_getopt_long_only_r' argument 6 names different: declaration '__data' definition 'd'. [funcArgNamesDifferent] diffutils-3.7/lib/getopt_int.h:116:26: note: Function '_getopt_long_only_r' argument 6 names different: declaration '__data' definition 'd'. diffutils-3.7/lib/getopt1.c:61:29: note: Function '_getopt_long_only_r' argument 6 names different: declaration '__data' definition 'd'. diffutils-3.7/lib/getprogname.c:244:0: error: #error "getprogname module not ported to this OS" [preprocessorErrorDirective] diffutils-3.7/lib/timespec.h:25:0: error: #error "Please include config.h first." [preprocessorErrorDirective] diffutils-3.7/lib/gettimeofday.c:140:0: error: #error "Only 1-second nominal clock resolution found. Is that intended?" \ [preprocessorErrorDirective] diffutils-3.7/lib/localcharset.c:925:14: style: Condition 'locale==NULL' is always true [knownConditionTrueFalse] diffutils-3.7/lib/localcharset.c:916:24: note: Assignment 'locale=NULL', assigned value is 0 diffutils-3.7/lib/localcharset.c:925:14: note: Condition 'locale==NULL' is always true diffutils-3.7/lib/localcharset.c:438:14: style: struct member 'table_entry::locale' is never used. [unusedStructMember] diffutils-3.7/lib/localcharset.c:439:14: style: struct member 'table_entry::canonical' is never used. [unusedStructMember] diffutils-3.7/lib/localcharset.c:934:22: style: Variable 'locale' is assigned a value that is never used. [unreadVariable] diffutils-3.7/lib/cdefs.h:30:0: error: #error "You need a ISO C conforming compiler to use the glibc headers" [preprocessorErrorDirective] diffutils-3.7/lib/nstrftime.c:552:7: style: Condition '!zone' is always true [knownConditionTrueFalse] diffutils-3.7/lib/nstrftime.c:514:10: note: Assignment 'zone=NULL', assigned value is 0 diffutils-3.7/lib/nstrftime.c:552:7: note: Condition '!zone' is always true diffutils-3.7/lib/xsize.h:31:0: error: #error "Please include config.h first." [preprocessorErrorDirective] diffutils-3.7/lib/rawmemchr.c:132:12: style: Variable 'char_ptr' is reassigned a value before the old one has been used. [redundantAssignment] diffutils-3.7/lib/rawmemchr.c:123:12: note: char_ptr is assigned diffutils-3.7/lib/rawmemchr.c:132:12: note: char_ptr is overwritten diffutils-3.7/lib/regcomp.c:138:5: error: There is an unknown macro here somewhere. Configuration is required. If gettext_noop is a macro then please configure it. [unknownMacro] diffutils-3.7/lib/regexec.c:1408:37: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] diffutils-3.7/lib/regexec.c:3311:42: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] diffutils-3.7/lib/regexec.c:3358:7: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] diffutils-3.7/lib/regexec.c:1663:11: style: Condition '!naccepted' is always true [knownConditionTrueFalse] diffutils-3.7/lib/regexec.c:1647:23: note: Assignment 'naccepted=0', assigned value is 0 diffutils-3.7/lib/regexec.c:1663:11: note: Condition '!naccepted' is always true diffutils-3.7/lib/regexec.c:3076:11: style: Condition 'naccepted' is always false [knownConditionTrueFalse] diffutils-3.7/lib/regexec.c:3031:23: note: Assignment 'naccepted=0', assigned value is 0 diffutils-3.7/lib/regexec.c:3076:11: note: Condition 'naccepted' is always false diffutils-3.7/lib/regexec.c:1983:27: style:inconclusive: Function 'check_dst_limits_calc_pos' argument 4 names different: declaration 'node' definition 'from_node'. [funcArgNamesDifferent] diffutils-3.7/lib/regexec.c:96:15: note: Function 'check_dst_limits_calc_pos' argument 4 names different: declaration 'node' definition 'from_node'. diffutils-3.7/lib/regexec.c:1983:27: note: Function 'check_dst_limits_calc_pos' argument 4 names different: declaration 'node' definition 'from_node'. diffutils-3.7/lib/regexec.c:3522:21: style:inconclusive: Function 'group_nodes_into_DFAstates' argument 3 names different: declaration 'states_node' definition 'dests_node'. [funcArgNamesDifferent] diffutils-3.7/lib/regexec.c:169:25: note: Function 'group_nodes_into_DFAstates' argument 3 names different: declaration 'states_node' definition 'dests_node'. diffutils-3.7/lib/regexec.c:3522:21: note: Function 'group_nodes_into_DFAstates' argument 3 names different: declaration 'states_node' definition 'dests_node'. diffutils-3.7/lib/regexec.c:3522:43: style:inconclusive: Function 'group_nodes_into_DFAstates' argument 4 names different: declaration 'states_ch' definition 'dests_ch'. [funcArgNamesDifferent] diffutils-3.7/lib/regexec.c:170:22: note: Function 'group_nodes_into_DFAstates' argument 4 names different: declaration 'states_ch' definition 'dests_ch'. diffutils-3.7/lib/regexec.c:3522:43: note: Function 'group_nodes_into_DFAstates' argument 4 names different: declaration 'states_ch' definition 'dests_ch'. diffutils-3.7/lib/regexec.c:4122:37: style:inconclusive: Function 'match_ctx_init' argument 1 names different: declaration 'cache' definition 'mctx'. [funcArgNamesDifferent] diffutils-3.7/lib/regexec.c:20:58: note: Function 'match_ctx_init' argument 1 names different: declaration 'cache' definition 'mctx'. diffutils-3.7/lib/regexec.c:4122:37: note: Function 'match_ctx_init' argument 1 names different: declaration 'cache' definition 'mctx'. diffutils-3.7/lib/regexec.c:4185:37: style:inconclusive: Function 'match_ctx_free' argument 1 names different: declaration 'cache' definition 'mctx'. [funcArgNamesDifferent] diffutils-3.7/lib/regexec.c:23:49: note: Function 'match_ctx_free' argument 1 names different: declaration 'cache' definition 'mctx'. diffutils-3.7/lib/regexec.c:4185:37: note: Function 'match_ctx_free' argument 1 names different: declaration 'cache' definition 'mctx'. diffutils-3.7/lib/regexec.c:4200:42: style:inconclusive: Function 'match_ctx_add_entry' argument 1 names different: declaration 'cache' definition 'mctx'. [funcArgNamesDifferent] diffutils-3.7/lib/regexec.c:24:63: note: Function 'match_ctx_add_entry' argument 1 names different: declaration 'cache' definition 'mctx'. diffutils-3.7/lib/regexec.c:4200:42: note: Function 'match_ctx_add_entry' argument 1 names different: declaration 'cache' definition 'mctx'. diffutils-3.7/lib/sig-handler.h:24:0: error: #error "Please include config.h first." [preprocessorErrorDirective] diffutils-3.7/lib/sigaction.c:55:0: error: #error "Revisit the assumptions made in the sigaction module" [preprocessorErrorDirective] diffutils-3.7/lib/strerror.c:45:7: style: Condition 'msg' is always false [knownConditionTrueFalse] diffutils-3.7/lib/strerror.c:44:21: note: Assignment 'msg=NULL', assigned value is 0 diffutils-3.7/lib/strerror.c:45:7: note: Condition 'msg' is always false diffutils-3.7/lib/strptime.c:414:11: style: Checking if unsigned expression 'val' is less than zero. [unsignedLessThanZero] diffutils-3.7/lib/strptime.c:463:11: style: Checking if unsigned expression 'val' is less than zero. [unsignedLessThanZero] diffutils-3.7/lib/strptime.c:490:11: style: Checking if unsigned expression 'val' is less than zero. [unsignedLessThanZero] diffutils-3.7/lib/strptime.c:590:11: style: Checking if unsigned expression 'val' is less than zero. [unsignedLessThanZero] diffutils-3.7/lib/strptime.c:624:11: style: Checking if unsigned expression 'val' is less than zero. [unsignedLessThanZero] diffutils-3.7/lib/strptime.c:637:11: style: Checking if unsigned expression 'val' is less than zero. [unsignedLessThanZero] diffutils-3.7/lib/strptime.c:642:11: style: Checking if unsigned expression 'val' is less than zero. [unsignedLessThanZero] diffutils-3.7/lib/strptime.c:647:11: style: Checking if unsigned expression 'val' is less than zero. [unsignedLessThanZero] diffutils-3.7/lib/strptime.c:653:11: style: Checking if unsigned expression 'val' is less than zero. [unsignedLessThanZero] diffutils-3.7/lib/strptime.c:662:11: style: Checking if unsigned expression 'val' is less than zero. [unsignedLessThanZero] diffutils-3.7/lib/strptime.c:672:11: style: Checking if unsigned expression 'val' is less than zero. [unsignedLessThanZero] diffutils-3.7/lib/strptime.c:971:15: style: Checking if unsigned expression 'val' is less than zero. [unsignedLessThanZero] diffutils-3.7/lib/strptime.c:991:15: style: Checking if unsigned expression 'val' is less than zero. [unsignedLessThanZero] diffutils-3.7/lib/strptime.c:1005:15: style: Checking if unsigned expression 'val' is less than zero. [unsignedLessThanZero] diffutils-3.7/lib/strptime.c:1009:15: style: Checking if unsigned expression 'val' is less than zero. [unsignedLessThanZero] diffutils-3.7/lib/strptime.c:1014:15: style: Checking if unsigned expression 'val' is less than zero. [unsignedLessThanZero] diffutils-3.7/lib/strptime.c:1019:15: style: Checking if unsigned expression 'val' is less than zero. [unsignedLessThanZero] diffutils-3.7/lib/strptime.c:1025:15: style: Checking if unsigned expression 'val' is less than zero. [unsignedLessThanZero] diffutils-3.7/lib/strptime.c:1031:15: style: Checking if unsigned expression 'val' is less than zero. [unsignedLessThanZero] diffutils-3.7/lib/strtol.c:310:13: warning: Either the condition 's==end' is redundant or there is possible null pointer dereference: s. [nullPointerRedundantCheck] diffutils-3.7/lib/strtol.c:303:11: note: Assignment 'end=NULL', assigned value is 0 diffutils-3.7/lib/strtol.c:312:13: note: Assuming that condition 's==end' is not redundant diffutils-3.7/lib/strtol.c:284:10: note: Assignment 'save=s', assigned value is 0 diffutils-3.7/lib/strtol.c:284:8: note: save is assigned 's' here. diffutils-3.7/lib/strtol.c:310:13: note: Null pointer dereference diffutils-3.7/lib/tempname.c:188:10: style: Variable 'fd' is assigned a value that is never used. [unreadVariable] diffutils-3.7/lib/time_r.c:37:30: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] diffutils-3.7/lib/time_r.c:43:30: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] diffutils-3.7/lib/anytostr.c:41:11: style: Comparing expression of type 'unsigned int' against value 0. Condition is always false. [compareValueOutOfTypeRangeError] diffutils-3.7/lib/anytostr.c:41:9: style: Checking if unsigned expression 'i' is less than zero. [unsignedLessThanZero] diffutils-3.7/lib/xfreopen.c:32:8: error: Return value of allocation function 'freopen' is not stored. [leakReturnValNotUsed] diffutils-3.7/lib/xstrtol.c:86:20: error: Uninitialized variable: &t_ptr [uninitvar] diffutils-3.7/src/context.c:421:23: error: The address of local variable 'linbuf' is accessed at non-zero index. [objectIndex] diffutils-3.7/src/context.c:412:35: note: Address of variable taken here. diffutils-3.7/src/context.c:421:23: note: The address of local variable 'linbuf' is accessed at non-zero index. diffutils-3.7/src/context.c:53:29: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] diffutils-3.7/src/diff.c:760:39: style:inconclusive: Boolean expression 'output_style!=OUTPUT_SDIFF' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] diffutils-3.7/src/diff.c:763:12: style:inconclusive: Boolean expression 'brief' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] diffutils-3.7/src/diff.c:764:30: style:inconclusive: Boolean expression 'ignore_blank_lines' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] diffutils-3.7/src/diff3.c:345:25: style:inconclusive: Boolean expression 'merge' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] diffutils-3.7/src/diff3.c:346:25: style:inconclusive: Boolean expression 'merge' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] diffutils-3.7/src/diff3.c:349:21: style:inconclusive: Boolean expression 'finalwrite' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] diffutils-3.7/src/diff3.c:382:26: style:inconclusive: Boolean expression 'edscript' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] diffutils-3.7/src/diff3.c:1272:16: warning: Either the condition '!fpipe' is redundant or there is possible null pointer dereference: fpipe. [nullPointerRedundantCheck] diffutils-3.7/src/diff3.c:1269:7: note: Assuming that condition '!fpipe' is not redundant diffutils-3.7/src/diff3.c:1272:16: note: Null pointer dereference diffutils-3.7/src/diff3.c:1001:9: style: Same value in both branches of ternary operator. [duplicateValueTernary] diffutils-3.7/src/diff3.c:1343:9: style: Parameter 'limit' can be declared as pointer to const [constParameter] diffutils-3.7/src/diff3.c:1091:17: error: Uninitialized variable: bptr.next [uninitvar] diffutils-3.7/src/diff3.c:1008:20: note: Assuming condition is false diffutils-3.7/src/diff3.c:1091:17: note: Uninitialized variable: bptr.next diffutils-3.7/src/diff3.c:997:22: style: Variable 'block_list' is not assigned a value. [unassignedVariable] diffutils-3.7/src/dir.c:89:34: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] diffutils-3.7/src/dir.c:129:21: warning:inconclusive: Division of result of sizeof() on pointer type. [divideSizeof] diffutils-3.7/src/ifdef.c:155:22: style: Condition 'value[i]==-1' is always false [knownConditionTrueFalse] diffutils-3.7/src/io.c:242:32: style:inconclusive: Boolean expression 'diff_length_compare_anyway' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] diffutils-3.7/src/io.c:773:25: style:inconclusive: Boolean expression 'text' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] diffutils-3.7/src/io.c:777:51: style:inconclusive: Boolean expression 'skip_test' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] diffutils-3.7/src/io.c:170:21: style: Condition 'file_size!=current->stat.st_size' is always false [knownConditionTrueFalse] diffutils-3.7/src/io.c:168:24: note: file_size is assigned 'current->stat.st_size' here. diffutils-3.7/src/io.c:170:21: note: Condition 'file_size!=current->stat.st_size' is always false diffutils-3.7/src/io.c:410:25: warning:inconclusive: Division of result of sizeof() on pointer type. [divideSizeof] diffutils-3.7/src/io.c:436:25: warning:inconclusive: Division of result of sizeof() on pointer type. [divideSizeof] diffutils-3.7/src/io.c:721:24: warning:inconclusive: Division of result of sizeof() on pointer type. [divideSizeof] diffutils-3.7/src/sdiff.c:594:19: style:inconclusive: Boolean expression 'leftdir' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] diffutils-3.7/src/sdiff.c:811:7: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] diffutils-3.7/src/sdiff.c:931:15: error: Uninitialized variable: cmd0 [uninitvar] diffutils-3.7/src/sdiff.c:871:14: note: Assuming condition is false diffutils-3.7/src/sdiff.c:931:15: note: Uninitialized variable: cmd0 diffutils-3.7/src/side.c:77:41: error: The address of local variable 'linbuf' is accessed at non-zero index. [objectIndex] diffutils-3.7/src/side.c:324:29: note: Address of variable taken here. diffutils-3.7/src/side.c:324:29: note: Calling function 'print_1sdiff_line', 3rd argument '&files[1].linbuf[j]' value is lifetime=linbuf diffutils-3.7/src/side.c:242:21: note: Calling function 'print_half_line', 1st argument 'right' value is lifetime=linbuf diffutils-3.7/src/side.c:77:41: note: The address of local variable 'linbuf' is accessed at non-zero index. diffutils-3.7/src/side.c:77:41: error: The address of local variable 'linbuf' is accessed at non-zero index. [objectIndex] diffutils-3.7/src/side.c:272:11: note: Address of variable taken here. diffutils-3.7/src/side.c:272:11: note: Calling function 'print_1sdiff_line', 3rd argument '&files[1].linbuf[i1++]' value is lifetime=linbuf diffutils-3.7/src/side.c:242:21: note: Calling function 'print_half_line', 1st argument 'right' value is lifetime=linbuf diffutils-3.7/src/side.c:77:41: note: The address of local variable 'linbuf' is accessed at non-zero index. diffutils-3.7/src/side.c:77:41: error: The address of local variable 'linbuf' is accessed at non-zero index. [objectIndex] diffutils-3.7/src/side.c:274:33: note: Address of variable taken here. diffutils-3.7/src/side.c:274:33: note: Calling function 'print_1sdiff_line', 3rd argument '&files[1].linbuf[i1++]' value is lifetime=linbuf diffutils-3.7/src/side.c:242:21: note: Calling function 'print_half_line', 1st argument 'right' value is lifetime=linbuf diffutils-3.7/src/side.c:77:41: note: The address of local variable 'linbuf' is accessed at non-zero index. diffutils-3.7/src/side.c:231:46: error: The address of local variable 'linbuf' is accessed at non-zero index. [objectIndex] diffutils-3.7/src/side.c:314:47: note: Address of variable taken here. diffutils-3.7/src/side.c:314:47: note: Calling function 'print_1sdiff_line', 3rd argument '&files[1].linbuf[j]' value is lifetime=linbuf diffutils-3.7/src/side.c:231:46: note: The address of local variable 'linbuf' is accessed at non-zero index. diffutils-3.7/src/side.c:238:27: error: The address of local variable 'linbuf' is accessed at non-zero index. [objectIndex] diffutils-3.7/src/side.c:324:29: note: Address of variable taken here. diffutils-3.7/src/side.c:324:29: note: Calling function 'print_1sdiff_line', 3rd argument '&files[1].linbuf[j]' value is lifetime=linbuf diffutils-3.7/src/side.c:238:27: note: The address of local variable 'linbuf' is accessed at non-zero index. diffutils-3.7/src/side.c:238:27: error: The address of local variable 'linbuf' is accessed at non-zero index. [objectIndex] diffutils-3.7/src/side.c:272:11: note: Address of variable taken here. diffutils-3.7/src/side.c:272:11: note: Calling function 'print_1sdiff_line', 3rd argument '&files[1].linbuf[i1++]' value is lifetime=linbuf diffutils-3.7/src/side.c:238:27: note: The address of local variable 'linbuf' is accessed at non-zero index. diffutils-3.7/src/side.c:238:27: error: The address of local variable 'linbuf' is accessed at non-zero index. [objectIndex] diffutils-3.7/src/side.c:274:33: note: Address of variable taken here. diffutils-3.7/src/side.c:274:33: note: Calling function 'print_1sdiff_line', 3rd argument '&files[1].linbuf[i1++]' value is lifetime=linbuf diffutils-3.7/src/side.c:238:27: note: The address of local variable 'linbuf' is accessed at non-zero index. diffutils-3.7/src/util.c:208:16: style: Unused variable: oldset [unusedVariable] diffutils-3.7/gnulib-tests/test-getopt_long.h:108:56: error: Null pointer dereference: longopts [ctunullpointer] diffutils-3.7/gnulib-tests/test-getopt_long.h:331:24: note: Calling function do_getopt_long, 4th argument is null diffutils-3.7/gnulib-tests/test-getopt_long.h:108:56: note: Dereferencing argument longopts that is null diffutils-3.7/src/dir.c:73:7: error: Using argument dir that points at uninitialized variable filedata [ctuuninitvar] diffutils-3.7/src/dir.c:359:20: note: Calling function dir_read, 1st argument is uninitialized diffutils-3.7/src/dir.c:73:7: note: Using argument dir diff: head diffutils-3.7/gnulib-tests/test-ftruncate.c:30:23: style: Parameter 'argv' can be declared as const array [constParameter] 2.8 diffutils-3.7/gnulib-tests/test-ftruncate.c:30:23: style: Parameter 'argv' can be declared with const [constParameter] head diffutils-3.7/lib/strtol.c:310:13: warning: Either the condition 's==end' is redundant or there is possible null pointer dereference: s. [nullPointerRedundantCheck] diffutils-3.7/lib/strtol.c:303:11: note: Assignment 'end=NULL', assigned value is 0 diffutils-3.7/lib/strtol.c:312:13: note: Assuming that condition 's==end' is not redundant diffutils-3.7/lib/strtol.c:284:10: note: Assignment 'save=s', assigned value is 0 diffutils-3.7/lib/strtol.c:284:8: note: save is assigned 's' here. diffutils-3.7/lib/strtol.c:310:13: note: Null pointer dereference 2.8 diffutils-3.7/lib/strtol.c:310:13: warning: Either the condition 's==end' is redundant or there is possible null pointer dereference: s. [nullPointerRedundantCheck] diffutils-3.7/lib/strtol.c:312:13: note: Assuming that condition 's==end' is not redundant diffutils-3.7/lib/strtol.c:284:10: note: Assignment 'save=s', assigned value is 0 diffutils-3.7/lib/strtol.c:284:8: note: save is assigned 's' here. diffutils-3.7/lib/strtol.c:310:13: note: Null pointer dereference head diffutils-3.7/src/diff3.c:1343:9: style: Parameter 'limit' can be declared as pointer to const [constParameter] 2.8 diffutils-3.7/src/diff3.c:1343:9: style: Parameter 'limit' can be declared with const [constParameter] head diffutils-3.7/src/side.c:77:41: error: The address of local variable 'linbuf' is accessed at non-zero index. [objectIndex] diffutils-3.7/src/side.c:272:11: note: Address of variable taken here. diffutils-3.7/src/side.c:272:11: note: Calling function 'print_1sdiff_line', 3rd argument '&files[1].linbuf[i1++]' value is lifetime=linbuf diffutils-3.7/src/side.c:242:21: note: Calling function 'print_half_line', 1st argument 'right' value is lifetime=linbuf diffutils-3.7/src/side.c:77:41: note: The address of local variable 'linbuf' is accessed at non-zero index. head diffutils-3.7/src/side.c:77:41: error: The address of local variable 'linbuf' is accessed at non-zero index. [objectIndex] diffutils-3.7/src/side.c:274:33: note: Address of variable taken here. diffutils-3.7/src/side.c:274:33: note: Calling function 'print_1sdiff_line', 3rd argument '&files[1].linbuf[i1++]' value is lifetime=linbuf diffutils-3.7/src/side.c:242:21: note: Calling function 'print_half_line', 1st argument 'right' value is lifetime=linbuf diffutils-3.7/src/side.c:77:41: note: The address of local variable 'linbuf' is accessed at non-zero index. DONE