2022-06-28 10:56 ftp://ftp.de.debian.org/debian/pool/main/g/grep/grep_3.7.orig.tar.xz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j2 platform: Linux-5.4.0-110-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.24 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 cppcheck: head 2.8 head-info: cdeebc1 (2022-06-27 20:55:09 +0200) count: 314 314 elapsed-time: 18.6 22.2 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: grep-3.7/gnulib-tests/vasnprintf.h:61:15: error: There is an unknown macro here somewhere. Configuration is required. If asnprintf is a macro then please configure it. [unknownMacro] grep-3.7/gnulib-tests/gettimeofday.c:143:0: error: #error "Only 1-second nominal clock resolution found. Is that intended?" \ [preprocessorErrorDirective] grep-3.7/gnulib-tests/inet_pton.c:152:16: error: Uninitialized variable: tmp [uninitvar] grep-3.7/gnulib-tests/inet_pton.c:150:14: note: Assuming condition is false grep-3.7/gnulib-tests/inet_pton.c:152:16: note: Uninitialized variable: tmp grep-3.7/gnulib-tests/sig-handler.h:24:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.7/gnulib-tests/localename.c:3213:63: style:inconclusive: Function 'gl_locale_name_thread' argument 2 names different: declaration 'categoryname' definition '_GL_UNUSED'. [funcArgNamesDifferent] grep-3.7/gnulib-tests/localename.h:50:70: note: Function 'gl_locale_name_thread' argument 2 names different: declaration 'categoryname' definition '_GL_UNUSED'. grep-3.7/gnulib-tests/localename.c:3213:63: note: Function 'gl_locale_name_thread' argument 2 names different: declaration 'categoryname' definition '_GL_UNUSED'. grep-3.7/gnulib-tests/localename.c:3237:62: style:inconclusive: Function 'gl_locale_name_posix' argument 2 names different: declaration 'categoryname' definition '_GL_UNUSED'. [funcArgNamesDifferent] grep-3.7/gnulib-tests/localename.h:64:69: note: Function 'gl_locale_name_posix' argument 2 names different: declaration 'categoryname' definition '_GL_UNUSED'. grep-3.7/gnulib-tests/localename.c:3237:62: note: Function 'gl_locale_name_posix' argument 2 names different: declaration 'categoryname' definition '_GL_UNUSED'. grep-3.7/gnulib-tests/localename.c:3302:38: style:inconclusive: Function 'gl_locale_name_environ' argument 1 names different: declaration 'category' definition '_GL_UNUSED'. [funcArgNamesDifferent] grep-3.7/gnulib-tests/localename.h:71:49: note: Function 'gl_locale_name_environ' argument 1 names different: declaration 'category' definition '_GL_UNUSED'. grep-3.7/gnulib-tests/localename.c:3302:38: note: Function 'gl_locale_name_environ' argument 1 names different: declaration 'category' definition '_GL_UNUSED'. grep-3.7/gnulib-tests/xsize.h:34:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.7/gnulib-tests/setlocale.c:60:0: error: #error "This file should only be compiled if NEED_SETLOCALE_IMPROVED || NEED_SETLOCALE_MTSAFE." [preprocessorErrorDirective] grep-3.7/gnulib-tests/sigaction.c:55:0: error: #error "Revisit the assumptions made in the sigaction module" [preprocessorErrorDirective] grep-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] grep-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] grep-3.7/gnulib-tests/test-alignof.c:29:23: style: struct member 'struct1::a' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:30:23: style: struct member 'struct2::a' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:31:23: style: struct member 'struct3::a' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:32:23: style: struct member 'struct4::a' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:40:1: style: struct member 'char_helper::slot1' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:40:1: style: struct member 'char_helper::slot2' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:41:1: style: struct member 'short_helper::slot1' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:41:1: style: struct member 'short_helper::slot2' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:42:1: style: struct member 'int_helper::slot1' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:42:1: style: struct member 'int_helper::slot2' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:43:1: style: struct member 'long_helper::slot1' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:43:1: style: struct member 'long_helper::slot2' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:44:1: style: struct member 'float_helper::slot1' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:44:1: style: struct member 'float_helper::slot2' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:45:1: style: struct member 'double_helper::slot1' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:45:1: style: struct member 'double_helper::slot2' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:46:1: style: struct member 'longdouble_helper::slot1' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:46:1: style: struct member 'longdouble_helper::slot2' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:48:1: style: struct member 'int64_t_helper::slot1' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:48:1: style: struct member 'int64_t_helper::slot2' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:50:1: style: struct member 'struct1_helper::slot1' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:50:1: style: struct member 'struct1_helper::slot2' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:51:1: style: struct member 'struct2_helper::slot1' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:51:1: style: struct member 'struct2_helper::slot2' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:52:1: style: struct member 'struct3_helper::slot1' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:52:1: style: struct member 'struct3_helper::slot2' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:53:1: style: struct member 'struct4_helper::slot1' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-alignof.c:53:1: style: struct member 'struct4_helper::slot2' is never used. [unusedStructMember] grep-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] grep-3.7/gnulib-tests/test-calloc-gnu.c:38:5: style: Opposite expression on both sides of '&='. [oppositeExpression] grep-3.7/gnulib-tests/test-cloexec.c:57:0: error: #error Please port fcntl to your platform [preprocessorErrorDirective] grep-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] grep-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] grep-3.7/gnulib-tests/test-dfa-match-aux.c:70:5: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'ptrdiff_t {aka signed int}'. [invalidPrintfArgType_sint] grep-3.7/gnulib-tests/test-dup-safer.c:70:0: error: #error Please port fcntl to your platform [preprocessorErrorDirective] grep-3.7/gnulib-tests/test-dup.c:34:5: error: Invalid dup() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] grep-3.7/gnulib-tests/test-dup2.c:64:0: error: #error Please port fcntl to your platform [preprocessorErrorDirective] grep-3.7/gnulib-tests/test-fcntl.c:64:0: error: #error Please port fcntl to your platform [preprocessorErrorDirective] grep-3.7/gnulib-tests/test-fdopen.c:41:13: error: Return value of allocation function 'fdopen' is not stored. [leakReturnValNotUsed] grep-3.7/gnulib-tests/test-fdopendir.c:50:5: error: Invalid fdopendir() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] grep-3.7/gnulib-tests/test-fdopendir.c:42:3: error: Return value of allocation function 'fdopendir' is not stored. [leakReturnValNotUsed] grep-3.7/gnulib-tests/test-fdopendir.c:50:5: error: Return value of allocation function 'fdopendir' is not stored. [leakReturnValNotUsed] grep-3.7/gnulib-tests/test-fdopendir.c:56:5: error: Return value of allocation function 'fdopendir' is not stored. [leakReturnValNotUsed] grep-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] grep-3.7/gnulib-tests/test-fnmatch.c:33:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] grep-3.7/gnulib-tests/test-fnmatch.c:35:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] grep-3.7/gnulib-tests/test-fnmatch.c:36:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] grep-3.7/gnulib-tests/test-fnmatch.c:37:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] grep-3.7/gnulib-tests/test-fnmatch.c:38:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] grep-3.7/gnulib-tests/test-fnmatch.c:39:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] grep-3.7/gnulib-tests/test-fnmatch.c:40:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] grep-3.7/gnulib-tests/test-fnmatch.c:41:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] grep-3.7/gnulib-tests/test-fnmatch.c:43:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] grep-3.7/gnulib-tests/test-fnmatch.c:45:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] grep-3.7/gnulib-tests/test-fnmatch.c:46:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] grep-3.7/gnulib-tests/test-fnmatch.c:47:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] grep-3.7/gnulib-tests/test-fnmatch.c:53:3: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] grep-3.7/gnulib-tests/test-fnmatch.c:33:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] grep-3.7/gnulib-tests/test-fnmatch.c:35:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] grep-3.7/gnulib-tests/test-fnmatch.c:36:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] grep-3.7/gnulib-tests/test-fnmatch.c:37:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] grep-3.7/gnulib-tests/test-fnmatch.c:38:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] grep-3.7/gnulib-tests/test-fnmatch.c:39:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] grep-3.7/gnulib-tests/test-fnmatch.c:40:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] grep-3.7/gnulib-tests/test-fnmatch.c:41:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] grep-3.7/gnulib-tests/test-fnmatch.c:43:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] grep-3.7/gnulib-tests/test-fnmatch.c:45:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] grep-3.7/gnulib-tests/test-fnmatch.c:46:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] grep-3.7/gnulib-tests/test-fnmatch.c:47:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] grep-3.7/gnulib-tests/test-fnmatch.c:53:3: style: Variable 'res' is assigned a value that is never used. [unreadVariable] grep-3.7/gnulib-tests/test-fopen.h:37:3: error: Return value of allocation function 'fopen' is not stored. [leakReturnValNotUsed] grep-3.7/gnulib-tests/test-fopen.h:47:3: error: Return value of allocation function 'fopen' is not stored. [leakReturnValNotUsed] grep-3.7/gnulib-tests/test-fopen.h:51:3: error: Return value of allocation function 'fopen' is not stored. [leakReturnValNotUsed] grep-3.7/gnulib-tests/test-fopen.h:56:3: error: Return value of allocation function 'fopen' is not stored. [leakReturnValNotUsed] grep-3.7/gnulib-tests/test-fopen.h:62:3: error: Return value of allocation function 'fopen' is not stored. [leakReturnValNotUsed] grep-3.7/gnulib-tests/test-fopen.h:66:3: error: Return value of allocation function 'fopen' is not stored. [leakReturnValNotUsed] grep-3.7/gnulib-tests/test-fopen.h:70:3: error: Return value of allocation function 'fopen' is not stored. [leakReturnValNotUsed] grep-3.7/gnulib-tests/test-fopen.h:74:3: error: Return value of allocation function 'fopen' is not stored. [leakReturnValNotUsed] grep-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] grep-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] grep-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] grep-3.7/gnulib-tests/test-ftruncate.c:30:23: style: Parameter 'argv' can be declared as const array [constParameter] grep-3.7/gnulib-tests/test-fstatat.c:82:5: error: Invalid fstatat() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] grep-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] grep-3.7/gnulib-tests/test-getopt.h:92:11: style: Redundant initialization for 'posixly'. The initialized value is overwritten before it is read. [redundantInitialization] grep-3.7/gnulib-tests/test-getopt.h:86:16: note: posixly is initialized grep-3.7/gnulib-tests/test-getopt.h:92:11: note: posixly is overwritten grep-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] grep-3.7/gnulib-tests/test-getopt_long.h:1586:9: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] grep-3.7/gnulib-tests/test-getopt_long.h:1583:29: note: outer condition: non_options_count==2 grep-3.7/gnulib-tests/test-getopt_long.h:1586:9: note: opposite inner condition: !(non_options_count==2) grep-3.7/gnulib-tests/test-getopt_long.h:108:56: warning: Possible null pointer dereference: longopts [nullPointer] grep-3.7/gnulib-tests/test-getopt_long.h:331:43: note: Calling function 'do_getopt_long', 4th argument 'NULL' value is 0 grep-3.7/gnulib-tests/test-getopt_long.h:108:56: note: Null pointer dereference grep-3.7/gnulib-tests/test-ignore-value.c:28:16: style: struct member 's::i' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-ignore-value.c:62:19: style: Variable 's1' is not assigned a value. [unassignedVariable] grep-3.7/gnulib-tests/test-getopt.h:98:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:98:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:99:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:99:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:130:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:130:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:131:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:131:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:163:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:163:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:164:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:164:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:195:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:195:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:196:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:196:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:230:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:230:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:231:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:231:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:261:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:261:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:262:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:262:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:293:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:293:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:294:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:294:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:429:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:429:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:430:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:430:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:463:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:463:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:464:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:464:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:497:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:497:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:498:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:498:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:531:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:531:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:532:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:532:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:565:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:565:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:566:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:566:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:599:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:599:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:600:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:600:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:635:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:635:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:636:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:636:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:665:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:665:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:666:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:666:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:695:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:695:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:696:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:696:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:727:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:727:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:728:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:728:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:794:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:794:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:795:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:795:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:1198:11: style: Local variable 'a_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:19:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:1198:11: note: Shadow variable grep-3.7/gnulib-tests/test-getopt.h:1199:11: style: Local variable 'b_seen' shadows outer variable [shadowVariable] grep-3.7/gnulib-tests/test-getopt_long.h:20:12: note: Shadowed declaration grep-3.7/gnulib-tests/test-getopt.h:1199:11: note: Shadow variable grep-3.7/gnulib-tests/test-intprops.c:195:3: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] grep-3.7/gnulib-tests/test-intprops.c:196:3: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] grep-3.7/gnulib-tests/test-intprops.c:201:3: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] grep-3.7/gnulib-tests/test-intprops.c:204:3: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] grep-3.7/gnulib-tests/test-intprops.c:381:3: warning: Expression '-1' has a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversion] grep-3.7/gnulib-tests/test-isatty.c:46:5: error: Invalid isatty() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] grep-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] grep-3.7/gnulib-tests/test-lseek.c:95:7: error: Invalid lseek() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] grep-3.7/gnulib-tests/test-memchr2.c:52:7: style: Condition 'page_boundary' is always false [knownConditionTrueFalse] grep-3.7/gnulib-tests/test-memchr2.c:51:38: note: Assignment 'page_boundary=zerosize_ptr()', assigned value is 0 grep-3.7/gnulib-tests/test-memchr2.c:52:7: note: Condition 'page_boundary' is always false grep-3.7/gnulib-tests/test-memchr.c:55:9: style: Condition 'page_boundary' is always false [knownConditionTrueFalse] grep-3.7/gnulib-tests/test-memchr.c:54:40: note: Assignment 'page_boundary=zerosize_ptr()', assigned value is 0 grep-3.7/gnulib-tests/test-memchr.c:55:9: note: Condition 'page_boundary' is always false grep-3.7/gnulib-tests/test-memchr.c:106:23: style: Condition 'page_boundary!=NULL' is always false [knownConditionTrueFalse] grep-3.7/gnulib-tests/test-memchr.c:101:27: note: Assignment 'page_boundary=(char*)zerosize_ptr()', assigned value is 0 grep-3.7/gnulib-tests/test-memchr.c:106:23: note: Condition 'page_boundary!=NULL' is always false grep-3.7/gnulib-tests/test-memrchr.c:58:7: style: Condition 'page_boundary' is always false [knownConditionTrueFalse] grep-3.7/gnulib-tests/test-memrchr.c:57:38: note: Assignment 'page_boundary=zerosize_ptr()', assigned value is 0 grep-3.7/gnulib-tests/test-memrchr.c:58:7: note: Condition 'page_boundary' is always false grep-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] grep-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] grep-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] grep-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] grep-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] grep-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] grep-3.7/gnulib-tests/test-openat-safer.c:81:11: error: Return value of allocation function 'openat' is not stored. [leakReturnValNotUsed] grep-3.7/gnulib-tests/test-openat-safer.c:84:11: error: Return value of allocation function 'openat' is not stored. [leakReturnValNotUsed] grep-3.7/gnulib-tests/test-openat-safer.c:87:11: error: Return value of allocation function 'openat' is not stored. [leakReturnValNotUsed] grep-3.7/gnulib-tests/test-openat-safer.c:92:11: error: Return value of allocation function 'openat' is not stored. [leakReturnValNotUsed] grep-3.7/gnulib-tests/test-openat-safer.c:97:11: error: Return value of allocation function 'openat' is not stored. [leakReturnValNotUsed] grep-3.7/gnulib-tests/test-openat-safer.c:108:11: error: Return value of allocation function 'openat' is not stored. [leakReturnValNotUsed] grep-3.7/gnulib-tests/test-openat.c:68:5: error: Return value of allocation function 'openat' is not stored. [leakReturnValNotUsed] grep-3.7/gnulib-tests/test-openat.c:74:5: error: Return value of allocation function 'openat' is not stored. [leakReturnValNotUsed] grep-3.7/gnulib-tests/test-openat.c:89:3: error: Return value of allocation function 'openat' is not stored. [leakReturnValNotUsed] grep-3.7/gnulib-tests/test-openat.c:95:5: error: Return value of allocation function 'openat' is not stored. [leakReturnValNotUsed] grep-3.7/gnulib-tests/test-pipe.c:53:0: error: #error Please port fcntl to your platform [preprocessorErrorDirective] grep-3.7/gnulib-tests/test-raise.c:50:3: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] grep-3.7/gnulib-tests/test-rawmemchr.c:80:9: style: Condition '!page_boundary' is always true [knownConditionTrueFalse] grep-3.7/gnulib-tests/test-rawmemchr.c:77:27: note: Assignment 'page_boundary=(char*)zerosize_ptr()', assigned value is 0 grep-3.7/gnulib-tests/test-rawmemchr.c:80:9: note: Condition '!page_boundary' is always true grep-3.7/gnulib-tests/test-quotearg-simple.c:336:9: style: Condition 'z' is always false [knownConditionTrueFalse] grep-3.7/gnulib-tests/test-quotearg-simple.c:334:28: note: Assignment 'z=zerosize_ptr()', assigned value is 0 grep-3.7/gnulib-tests/test-quotearg-simple.c:336:9: note: Condition 'z' is always false grep-3.7/gnulib-tests/test-realloc-gnu.c:39:7: error: Common realloc mistake: 'p' nulled but not freed upon failure [memleakOnRealloc] grep-3.7/gnulib-tests/test-read.c:58:5: error: Invalid read() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] grep-3.7/gnulib-tests/test-reallocarray.c:41:11: error: Common reallocarray mistake: 'p' nulled but not freed upon failure [memleakOnRealloc] grep-3.7/gnulib-tests/test-reallocarray.c:46:7: error: Common reallocarray mistake: 'p' nulled but not freed upon failure [memleakOnRealloc] grep-3.7/gnulib-tests/test-reallocarray.c:52:7: error: Common reallocarray mistake: 'p' nulled but not freed upon failure [memleakOnRealloc] grep-3.7/gnulib-tests/test-reallocarray.c:53:7: error: Common reallocarray mistake: 'p' nulled but not freed upon failure [memleakOnRealloc] grep-3.7/gnulib-tests/test-regex.c:263:45: style: Condition 'towupper(L'i')==0x0130' is always false [knownConditionTrueFalse] grep-3.7/gnulib-tests/test-regex.c:249:15: error: Memory pointed to by 'start' is freed twice. [doubleFree] grep-3.7/gnulib-tests/test-regex.c:212:13: note: Memory pointed to by 'start' is freed twice. grep-3.7/gnulib-tests/test-regex.c:249:15: note: Memory pointed to by 'start' is freed twice. grep-3.7/gnulib-tests/test-regex.c:250:15: error: Memory pointed to by 'end' is freed twice. [doubleFree] grep-3.7/gnulib-tests/test-regex.c:213:13: note: Memory pointed to by 'end' is freed twice. grep-3.7/gnulib-tests/test-regex.c:250:15: note: Memory pointed to by 'end' is freed twice. grep-3.7/gnulib-tests/test-regex.c:286:15: error: Memory pointed to by 'start' is freed twice. [doubleFree] grep-3.7/gnulib-tests/test-regex.c:212:13: note: Memory pointed to by 'start' is freed twice. grep-3.7/gnulib-tests/test-regex.c:286:15: note: Memory pointed to by 'start' is freed twice. grep-3.7/gnulib-tests/test-regex.c:287:15: error: Memory pointed to by 'end' is freed twice. [doubleFree] grep-3.7/gnulib-tests/test-regex.c:213:13: note: Memory pointed to by 'end' is freed twice. grep-3.7/gnulib-tests/test-regex.c:287:15: note: Memory pointed to by 'end' is freed twice. grep-3.7/gnulib-tests/test-regex.c:315:7: error: Memory pointed to by 'start' is freed twice. [doubleFree] grep-3.7/gnulib-tests/test-regex.c:212:13: note: Memory pointed to by 'start' is freed twice. grep-3.7/gnulib-tests/test-regex.c:315:7: note: Memory pointed to by 'start' is freed twice. grep-3.7/gnulib-tests/test-regex.c:316:7: error: Memory pointed to by 'end' is freed twice. [doubleFree] grep-3.7/gnulib-tests/test-regex.c:213:13: note: Memory pointed to by 'end' is freed twice. grep-3.7/gnulib-tests/test-regex.c:316:7: note: Memory pointed to by 'end' is freed twice. grep-3.7/gnulib-tests/test-setlocale1.c:45:5: error: Memory leak: name1 [memleak] grep-3.7/gnulib-tests/test-setlocale1.c:51:5: error: Memory leak: name1 [memleak] grep-3.7/gnulib-tests/test-snprintf.c:53:20: style: The if condition is the same as the previous if condition [duplicateCondition] grep-3.7/gnulib-tests/test-snprintf.c:47:20: note: First condition grep-3.7/gnulib-tests/test-snprintf.c:53:20: note: Second condition grep-3.7/gnulib-tests/test-stdalign.c:38:0: error: #error "alignof is not a macro" [preprocessorErrorDirective] grep-3.7/gnulib-tests/test-stddef.c:39:8: style: struct member 'd::e' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-stddef.c:40:8: style: struct member 'd::f' is never used. [unusedStructMember] grep-3.7/gnulib-tests/test-stdint.c:371:1: error: syntax error: -) [syntaxError] grep-3.7/gnulib-tests/test-strnlen.c:35:7: style: Condition '!page_boundary' is always true [knownConditionTrueFalse] grep-3.7/gnulib-tests/test-strnlen.c:34:25: note: Assignment 'page_boundary=(char*)zerosize_ptr()', assigned value is 0 grep-3.7/gnulib-tests/test-strnlen.c:35:7: note: Condition '!page_boundary' is always true grep-3.7/gnulib-tests/test-strstr.c:67:19: style: Condition 'page_boundary' is always false [knownConditionTrueFalse] grep-3.7/gnulib-tests/test-strstr.c:65:27: note: Assignment 'page_boundary=(char*)zerosize_ptr()', assigned value is 0 grep-3.7/gnulib-tests/test-strstr.c:67:19: note: Condition 'page_boundary' is always false grep-3.7/gnulib-tests/test-thread_create.c:49:13: style: Variable 'ret' can be declared as pointer to const [constVariable] grep-3.7/gnulib-tests/test-thread_create.c:61:7: error: Uninitialized variable: ret [uninitvar] grep-3.7/gnulib-tests/test-thread_create.c:54:7: note: Assuming condition is false grep-3.7/gnulib-tests/test-thread_create.c:61:7: note: Uninitialized variable: ret grep-3.7/gnulib-tests/test-thread_create.c:49:13: style: Variable 'ret' is not assigned a value. [unassignedVariable] grep-3.7/gnulib-tests/test-unsetenv.c:40:12: style: Variable 'entry[0]' is assigned a value that is never used. [unreadVariable] grep-3.7/gnulib-tests/test-verify.c:57:13: style: Same expression on both sides of '=='. [duplicateExpression] grep-3.7/gnulib-tests/test-verify.c:60:35: style: Same expression on both sides of '=='. [duplicateExpression] grep-3.7/gnulib-tests/test-verify.c:75:31: style: struct member 'state::context' is never used. [unusedStructMember] grep-3.7/gnulib-tests/anytostr.c:41:11: style: Comparing expression of type 'unsigned int' against value 0. Condition is always false. [compareValueOutOfTypeRangeError] grep-3.7/gnulib-tests/anytostr.c:41:9: style: Checking if unsigned expression 'i' is less than zero. [unsignedLessThanZero] grep-3.7/lib/openat.h:30:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.7/lib/binary-io.h:29:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.7/lib/bitrotate.h:27:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.7/lib/c-ctype.h:29:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.7/lib/chdir-long.c:33:0: error: #error "compile this file only if your system defines PATH_MAX" [preprocessorErrorDirective] grep-3.7/lib/xalloc.h:31:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.7/lib/error.c:142:0: error: #error Please port fcntl to your platform [preprocessorErrorDirective] grep-3.7/lib/mbchar.h:153:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.7/lib/cdefs.h:30:0: error: #error "You need a ISO C conforming compiler to use the glibc headers" [preprocessorErrorDirective] grep-3.7/lib/fpending.c:60:0: error: #error "Please port gnulib fpending.c to your platform!" [preprocessorErrorDirective] grep-3.7/lib/fnmatch_loop.c:934:18: style:inconclusive: Function 'END' argument 1 names different: declaration 'patternp' definition 'pattern'. [funcArgNamesDifferent] grep-3.7/lib/fnmatch_loop.c:37:37: note: Function 'END' argument 1 names different: declaration 'patternp' definition 'pattern'. grep-3.7/lib/fnmatch_loop.c:934:18: note: Function 'END' argument 1 names different: declaration 'patternp' definition 'pattern'. grep-3.7/lib/fnmatch_loop.c:1096:44: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] grep-3.7/lib/fnmatch_loop.c:1105:26: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] grep-3.7/lib/fnmatch_loop.c:1113:33: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] grep-3.7/lib/fnmatch_loop.c:1137:40: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] grep-3.7/lib/fnmatch_loop.c:1154:44: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] grep-3.7/lib/fnmatch_loop.c:1164:46: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] grep-3.7/lib/stat-time.h:31:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.7/lib/getopt1.c:36:21: style:inconclusive: Function '_getopt_long_r' argument 1 names different: declaration '___argc' definition 'argc'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:107:32: note: Function '_getopt_long_r' argument 1 names different: declaration '___argc' definition 'argc'. grep-3.7/lib/getopt1.c:36:21: note: Function '_getopt_long_r' argument 1 names different: declaration '___argc' definition 'argc'. grep-3.7/lib/getopt1.c:36:34: style:inconclusive: Function '_getopt_long_r' argument 2 names different: declaration '___argv' definition 'argv'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:107:48: note: Function '_getopt_long_r' argument 2 names different: declaration '___argv' definition 'argv'. grep-3.7/lib/getopt1.c:36:34: note: Function '_getopt_long_r' argument 2 names different: declaration '___argv' definition 'argv'. grep-3.7/lib/getopt1.c:36:52: style:inconclusive: Function '_getopt_long_r' argument 3 names different: declaration '__shortopts' definition 'options'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:108:19: note: Function '_getopt_long_r' argument 3 names different: declaration '__shortopts' definition 'options'. grep-3.7/lib/getopt1.c:36:52: note: Function '_getopt_long_r' argument 3 names different: declaration '__shortopts' definition 'options'. grep-3.7/lib/getopt1.c:37:24: style:inconclusive: Function '_getopt_long_r' argument 4 names different: declaration '__longopts' definition 'long_options'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:109:28: note: Function '_getopt_long_r' argument 4 names different: declaration '__longopts' definition 'long_options'. grep-3.7/lib/getopt1.c:37:24: note: Function '_getopt_long_r' argument 4 names different: declaration '__longopts' definition 'long_options'. grep-3.7/lib/getopt1.c:37:43: style:inconclusive: Function '_getopt_long_r' argument 5 names different: declaration '__longind' definition 'opt_index'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:109:45: note: Function '_getopt_long_r' argument 5 names different: declaration '__longind' definition 'opt_index'. grep-3.7/lib/getopt1.c:37:43: note: Function '_getopt_long_r' argument 5 names different: declaration '__longind' definition 'opt_index'. grep-3.7/lib/getopt1.c:38:24: style:inconclusive: Function '_getopt_long_r' argument 6 names different: declaration '__data' definition 'd'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:110:28: note: Function '_getopt_long_r' argument 6 names different: declaration '__data' definition 'd'. grep-3.7/lib/getopt1.c:38:24: note: Function '_getopt_long_r' argument 6 names different: declaration '__data' definition 'd'. grep-3.7/lib/getopt1.c:59:26: style:inconclusive: Function '_getopt_long_only_r' argument 1 names different: declaration '___argc' definition 'argc'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:112:37: note: Function '_getopt_long_only_r' argument 1 names different: declaration '___argc' definition 'argc'. grep-3.7/lib/getopt1.c:59:26: note: Function '_getopt_long_only_r' argument 1 names different: declaration '___argc' definition 'argc'. grep-3.7/lib/getopt1.c:59:39: style:inconclusive: Function '_getopt_long_only_r' argument 2 names different: declaration '___argv' definition 'argv'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:112:53: note: Function '_getopt_long_only_r' argument 2 names different: declaration '___argv' definition 'argv'. grep-3.7/lib/getopt1.c:59:39: note: Function '_getopt_long_only_r' argument 2 names different: declaration '___argv' definition 'argv'. grep-3.7/lib/getopt1.c:59:57: style:inconclusive: Function '_getopt_long_only_r' argument 3 names different: declaration '__shortopts' definition 'options'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:113:17: note: Function '_getopt_long_only_r' argument 3 names different: declaration '__shortopts' definition 'options'. grep-3.7/lib/getopt1.c:59:57: note: Function '_getopt_long_only_r' argument 3 names different: declaration '__shortopts' definition 'options'. grep-3.7/lib/getopt1.c:60:29: style:inconclusive: Function '_getopt_long_only_r' argument 4 names different: declaration '__longopts' definition 'long_options'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:114:26: note: Function '_getopt_long_only_r' argument 4 names different: declaration '__longopts' definition 'long_options'. grep-3.7/lib/getopt1.c:60:29: note: Function '_getopt_long_only_r' argument 4 names different: declaration '__longopts' definition 'long_options'. grep-3.7/lib/getopt1.c:60:48: style:inconclusive: Function '_getopt_long_only_r' argument 5 names different: declaration '__longind' definition 'opt_index'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:115:10: note: Function '_getopt_long_only_r' argument 5 names different: declaration '__longind' definition 'opt_index'. grep-3.7/lib/getopt1.c:60:48: note: Function '_getopt_long_only_r' argument 5 names different: declaration '__longind' definition 'opt_index'. grep-3.7/lib/getopt1.c:61:29: style:inconclusive: Function '_getopt_long_only_r' argument 6 names different: declaration '__data' definition 'd'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:116:26: note: Function '_getopt_long_only_r' argument 6 names different: declaration '__data' definition 'd'. grep-3.7/lib/getopt1.c:61:29: note: Function '_getopt_long_only_r' argument 6 names different: declaration '__data' definition 'd'. grep-3.7/lib/getopt.c:471:25: style:inconclusive: Function '_getopt_internal_r' argument 1 names different: declaration '___argc' definition 'argc'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:101:36: note: Function '_getopt_internal_r' argument 1 names different: declaration '___argc' definition 'argc'. grep-3.7/lib/getopt.c:471:25: note: Function '_getopt_internal_r' argument 1 names different: declaration '___argc' definition 'argc'. grep-3.7/lib/getopt.c:471:38: style:inconclusive: Function '_getopt_internal_r' argument 2 names different: declaration '___argv' definition 'argv'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:101:52: note: Function '_getopt_internal_r' argument 2 names different: declaration '___argv' definition 'argv'. grep-3.7/lib/getopt.c:471:38: note: Function '_getopt_internal_r' argument 2 names different: declaration '___argv' definition 'argv'. grep-3.7/lib/getopt.c:471:56: style:inconclusive: Function '_getopt_internal_r' argument 3 names different: declaration '__shortopts' definition 'optstring'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:102:23: note: Function '_getopt_internal_r' argument 3 names different: declaration '__shortopts' definition 'optstring'. grep-3.7/lib/getopt.c:471:56: note: Function '_getopt_internal_r' argument 3 names different: declaration '__shortopts' definition 'optstring'. grep-3.7/lib/getopt.c:472:28: style:inconclusive: Function '_getopt_internal_r' argument 4 names different: declaration '__longopts' definition 'longopts'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:103:32: note: Function '_getopt_internal_r' argument 4 names different: declaration '__longopts' definition 'longopts'. grep-3.7/lib/getopt.c:472:28: note: Function '_getopt_internal_r' argument 4 names different: declaration '__longopts' definition 'longopts'. grep-3.7/lib/getopt.c:472:43: style:inconclusive: Function '_getopt_internal_r' argument 5 names different: declaration '__longind' definition 'longind'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:103:49: note: Function '_getopt_internal_r' argument 5 names different: declaration '__longind' definition 'longind'. grep-3.7/lib/getopt.c:472:43: note: Function '_getopt_internal_r' argument 5 names different: declaration '__longind' definition 'longind'. grep-3.7/lib/getopt.c:473:11: style:inconclusive: Function '_getopt_internal_r' argument 6 names different: declaration '__long_only' definition 'long_only'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:104:15: note: Function '_getopt_internal_r' argument 6 names different: declaration '__long_only' definition 'long_only'. grep-3.7/lib/getopt.c:473:11: note: Function '_getopt_internal_r' argument 6 names different: declaration '__long_only' definition 'long_only'. grep-3.7/lib/getopt.c:473:43: style:inconclusive: Function '_getopt_internal_r' argument 7 names different: declaration '__data' definition 'd'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:104:49: note: Function '_getopt_internal_r' argument 7 names different: declaration '__data' definition 'd'. grep-3.7/lib/getopt.c:473:43: note: Function '_getopt_internal_r' argument 7 names different: declaration '__data' definition 'd'. grep-3.7/lib/getopt.c:473:50: style:inconclusive: Function '_getopt_internal_r' argument 8 names different: declaration '__posixly_correct' definition 'posixly_correct'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:105:15: note: Function '_getopt_internal_r' argument 8 names different: declaration '__posixly_correct' definition 'posixly_correct'. grep-3.7/lib/getopt.c:473:50: note: Function '_getopt_internal_r' argument 8 names different: declaration '__posixly_correct' definition 'posixly_correct'. grep-3.7/lib/getopt.c:703:23: style:inconclusive: Function '_getopt_internal' argument 1 names different: declaration '___argc' definition 'argc'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:25:34: note: Function '_getopt_internal' argument 1 names different: declaration '___argc' definition 'argc'. grep-3.7/lib/getopt.c:703:23: note: Function '_getopt_internal' argument 1 names different: declaration '___argc' definition 'argc'. grep-3.7/lib/getopt.c:703:36: style:inconclusive: Function '_getopt_internal' argument 2 names different: declaration '___argv' definition 'argv'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:25:50: note: Function '_getopt_internal' argument 2 names different: declaration '___argv' definition 'argv'. grep-3.7/lib/getopt.c:703:36: note: Function '_getopt_internal' argument 2 names different: declaration '___argv' definition 'argv'. grep-3.7/lib/getopt.c:703:54: style:inconclusive: Function '_getopt_internal' argument 3 names different: declaration '__shortopts' definition 'optstring'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:26:21: note: Function '_getopt_internal' argument 3 names different: declaration '__shortopts' definition 'optstring'. grep-3.7/lib/getopt.c:703:54: note: Function '_getopt_internal' argument 3 names different: declaration '__shortopts' definition 'optstring'. grep-3.7/lib/getopt.c:704:26: style:inconclusive: Function '_getopt_internal' argument 4 names different: declaration '__longopts' definition 'longopts'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:27:30: note: Function '_getopt_internal' argument 4 names different: declaration '__longopts' definition 'longopts'. grep-3.7/lib/getopt.c:704:26: note: Function '_getopt_internal' argument 4 names different: declaration '__longopts' definition 'longopts'. grep-3.7/lib/getopt.c:704:41: style:inconclusive: Function '_getopt_internal' argument 5 names different: declaration '__longind' definition 'longind'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:27:47: note: Function '_getopt_internal' argument 5 names different: declaration '__longind' definition 'longind'. grep-3.7/lib/getopt.c:704:41: note: Function '_getopt_internal' argument 5 names different: declaration '__longind' definition 'longind'. grep-3.7/lib/getopt.c:704:54: style:inconclusive: Function '_getopt_internal' argument 6 names different: declaration '__long_only' definition 'long_only'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:28:13: note: Function '_getopt_internal' argument 6 names different: declaration '__long_only' definition 'long_only'. grep-3.7/lib/getopt.c:704:54: note: Function '_getopt_internal' argument 6 names different: declaration '__long_only' definition 'long_only'. grep-3.7/lib/getopt.c:705:9: style:inconclusive: Function '_getopt_internal' argument 7 names different: declaration '__posixly_correct' definition 'posixly_correct'. [funcArgNamesDifferent] grep-3.7/lib/getopt_int.h:28:30: note: Function '_getopt_internal' argument 7 names different: declaration '__posixly_correct' definition 'posixly_correct'. grep-3.7/lib/getopt.c:705:9: note: Function '_getopt_internal' argument 7 names different: declaration '__posixly_correct' definition 'posixly_correct'. grep-3.7/lib/getprogname.c:291:0: error: #error "getprogname module not ported to this OS" [preprocessorErrorDirective] grep-3.7/lib/ialloc.h:28:0: error: #error "Please include config.h first." [preprocessorErrorDirective] grep-3.7/lib/i-ring.c:25:30: style:inconclusive: Function 'i_ring_init' argument 2 names different: declaration 'ir_default_val' definition 'default_val'. [funcArgNamesDifferent] grep-3.7/lib/i-ring.h:41:35: note: Function 'i_ring_init' argument 2 names different: declaration 'ir_default_val' definition 'default_val'. grep-3.7/lib/i-ring.c:25:30: note: Function 'i_ring_init' argument 2 names different: declaration 'ir_default_val' definition 'default_val'. grep-3.7/lib/localcharset.c:1088:14: style: Condition 'locale==NULL' is always true [knownConditionTrueFalse] grep-3.7/lib/localcharset.c:1079:24: note: Assignment 'locale=NULL', assigned value is 0 grep-3.7/lib/localcharset.c:1088:14: note: Condition 'locale==NULL' is always true grep-3.7/lib/localcharset.c:579:14: style: struct member 'table_entry::locale' is never used. [unusedStructMember] grep-3.7/lib/localcharset.c:580:14: style: struct member 'table_entry::canonical' is never used. [unusedStructMember] grep-3.7/lib/localcharset.c:1097:22: style: Variable 'locale' is assigned a value that is never used. [unreadVariable] grep-3.7/lib/malloc/dynarray-skeleton.c:95:0: error: #error "DYNARRAY_STRUCT must be defined" [preprocessorErrorDirective] grep-3.7/lib/malloc/dynarray.h:171:1: error: There is an unknown macro here somewhere. Configuration is required. If libc_hidden_proto is a macro then please configure it. [unknownMacro] grep-3.7/lib/obstack.c:138:35: error: Pointer addition with NULL pointer. [nullPointerArithmetic] grep-3.7/lib/obstack.c:208:5: error: Pointer addition with NULL pointer. [nullPointerArithmetic] grep-3.7/lib/obstack.c:218:14: error: Pointer addition with NULL pointer. [nullPointerArithmetic] grep-3.7/lib/obstack.c:240:48: style: Parameter 'obj' can be declared as pointer to const [constParameter] grep-3.7/lib/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] grep-3.7/lib/rawmemchr.c:135:12: style: Variable 'char_ptr' is reassigned a value before the old one has been used. [redundantAssignment] grep-3.7/lib/rawmemchr.c:126:12: note: char_ptr is assigned grep-3.7/lib/rawmemchr.c:135:12: note: char_ptr is overwritten grep-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] grep-3.7/lib/reallocarray.c:31:7: style: Checking if unsigned expression 'size' is less than zero. [unsignedLessThanZero] grep-3.7/lib/reallocarray.c:31:7: style: Checking if unsigned expression 'nmemb' is less than zero. [unsignedLessThanZero] grep-3.7/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:(size))-1' is less than zero. [unsignedLessThanZero] grep-3.7/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(((1?0:(size))-1)<0)?~(((((1?0:(size))+1)<<((sizeof(size)*CHAR_BIT)-2))-1)*2+1):((1?0:(size))+0)' is less than zero. [unsignedLessThanZero] grep-3.7/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:(nmemb))-1' is less than zero. [unsignedLessThanZero] grep-3.7/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:(size))+0))-1' is less than zero. [unsignedLessThanZero] grep-3.7/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(((1?0:((1?0:(size))+0))-1)<0)?~(((((1?0:((1?0:(size))+0))+1)<<((sizeof((1?0:(size))+0)*CHAR_BIT)-2))-1)*2+1):((1?0:((1?0:(size))+0))+0)' is less than zero. [unsignedLessThanZero] grep-3.7/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:(nmemb))+0))-1' is less than zero. [unsignedLessThanZero] grep-3.7/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(((1?0:((1?0:(nmemb))+0))-1)<0)?~(((((1?0:((1?0:(nmemb))+0))+1)<<((sizeof((1?0:(nmemb))+0)*CHAR_BIT)-2))-1)*2+1):((1?0:((1?0:(nmemb))+0))+0)' is less than zero. [unsignedLessThanZero] grep-3.7/lib/reallocarray.c:31:7: style: Checking if unsigned expression '*(&nbytes)=((char)((unsigned int)(nmemb)*(unsigned int)(size)))' is less than zero. [unsignedLessThanZero] grep-3.7/lib/reallocarray.c:31:7: style: Unsigned expression '*(&nbytes)=((char)((unsigned int)(nmemb)*(unsigned int)(size)))' can't be negative so it is unnecessary to test it. [unsignedPositive] grep-3.7/lib/reallocarray.c:31:7: style: Checking if unsigned expression '*(&nbytes)=((short)((unsigned int)(nmemb)*(unsigned int)(size)))' is less than zero. [unsignedLessThanZero] grep-3.7/lib/reallocarray.c:31:7: style: Unsigned expression '*(&nbytes)=((short)((unsigned int)(nmemb)*(unsigned int)(size)))' can't be negative so it is unnecessary to test it. [unsignedPositive] grep-3.7/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:(*(&nbytes)))-1' is less than zero. [unsignedLessThanZero] grep-3.7/lib/reallocarray.c:31:7: warning:inconclusive: Found calculation inside sizeof(). [sizeofCalculation] grep-3.7/lib/malloc/dynarray-skeleton.c:149:0: error: failed to expand 'DYNARRAY_FREE', Invalid ## usage when expanding 'DYNARRAY_CONCAT0': Unexpected token ')' [preprocessorErrorDirective] grep-3.7/lib/strerror.c:45:7: style: Condition 'msg' is always false [knownConditionTrueFalse] grep-3.7/lib/strerror.c:44:21: note: Assignment 'msg=NULL', assigned value is 0 grep-3.7/lib/strerror.c:45:7: note: Condition 'msg' is always false grep-3.7/lib/strtol.c:324:13: warning: Either the condition 's==end' is redundant or there is possible null pointer dereference: s. [nullPointerRedundantCheck] grep-3.7/lib/strtol.c:317:11: note: Assignment 'end=NULL', assigned value is 0 grep-3.7/lib/strtol.c:326:13: note: Assuming that condition 's==end' is not redundant grep-3.7/lib/strtol.c:298:10: note: Assignment 'save=s', assigned value is 0 grep-3.7/lib/strtol.c:298:8: note: save is assigned 's' here. grep-3.7/lib/strtol.c:324:13: note: Null pointer dereference grep-3.7/lib/xstrtol.c:86:20: error: Uninitialized variable: &t_ptr [uninitvar] grep-3.7/src/dfasearch.c:157:31: style:inconclusive: Boolean expression 'syntax_only' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] grep-3.7/src/dfasearch.c:200:40: style:inconclusive: Boolean expression '!localeinfo.multibyte' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] grep-3.7/src/dfasearch.c:411:45: style:inconclusive: Boolean expression '!localeinfo.multibyte' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] grep-3.7/src/dfasearch.c:200:40: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] grep-3.7/src/dfasearch.c:411:45: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] grep-3.7/src/dfasearch.c:152:49: error: Uninitialized variable: &pat0 [uninitvar] grep-3.7/src/kwsearch.c:116:40: style:inconclusive: Boolean expression '!localeinfo.using_utf8' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] grep-3.7/src/kwsearch.c:116:65: style:inconclusive: Boolean expression '!match_lines' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] grep-3.7/src/kwsearch.c:117:28: style:inconclusive: Boolean expression 'mb_check' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] grep-3.7/src/kwsearch.c:117:57: style:inconclusive: Boolean expression '!match_lines' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] grep-3.7/src/kwsearch.c:150:23: style:inconclusive: Boolean expression '!!start_ptr' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] grep-3.7/src/kwsearch.c:116:40: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] grep-3.7/src/kwsearch.c:117:28: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] grep-3.7/src/kwsearch.c:150:23: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] grep-3.7/src/grep.c:614:54: style:inconclusive: Boolean expression 'devices==READ_COMMAND_LINE_DEVICES' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] grep-3.7/src/grep.c:712:37: style:inconclusive: Boolean expression 'localeinfo.sbclen[i]!=1' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] grep-3.7/src/grep.c:1011:28: style:inconclusive: Boolean expression 'fillsize==0' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] grep-3.7/src/grep.c:1191:42: style:inconclusive: Boolean expression 'out_byte' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] grep-3.7/src/grep.c:1638:59: style:inconclusive: Boolean expression 'out_quiet' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] grep-3.7/src/grep.c:2882:21: style:inconclusive: Boolean expression 'exit_on_match' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] grep-3.7/src/grep.c:2884:22: style:inconclusive: Boolean expression 'exit_on_match' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] grep-3.7/src/grep.c:2889:29: style:inconclusive: Boolean expression 'count_matches' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] grep-3.7/src/grep.c:614:54: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] grep-3.7/src/grep.c:712:37: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] grep-3.7/src/grep.c:1011:28: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] grep-3.7/src/grep.c:972:30: style: Condition 'maxsize_off==(unsigned long)maxsize_off' is always true [knownConditionTrueFalse] grep-3.7/src/grep.c:970:29: note: maxsize_off is assigned 'save+to_be_read' here. grep-3.7/src/grep.c:972:30: note: Condition 'maxsize_off==(unsigned long)maxsize_off' is always true grep-3.7/src/grep.c:1033:22: error: Uninitialized variable: fillsize [uninitvar] grep-3.7/src/grep.c:1001:10: note: Assuming condition is false grep-3.7/src/grep.c:1033:22: note: Uninitialized variable: fillsize grep-3.7/src/grep.c:2162:10: error: Uninitialized variable: opt [uninitvar] grep-3.7/src/grep.c:2122:10: note: Assuming condition is false grep-3.7/src/grep.c:2162:10: note: Uninitialized variable: opt grep-3.7/src/kwset.c:818:45: warning: Either the condition '!tree' is redundant or there is possible null pointer dereference: tree. [nullPointerRedundantCheck] grep-3.7/src/kwset.c:821:23: note: Assuming that condition '!tree' is not redundant grep-3.7/src/kwset.c:818:45: note: Null pointer dereference grep-3.7/src/kwset.c:759:20: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] grep-3.7/src/kwset.c:904:11: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] diff: head grep-3.7/gnulib-tests/test-ftruncate.c:30:23: style: Parameter 'argv' can be declared as const array [constParameter] 2.8 grep-3.7/gnulib-tests/test-ftruncate.c:30:23: style: Parameter 'argv' can be declared with const [constParameter] head grep-3.7/gnulib-tests/test-thread_create.c:49:13: style: Variable 'ret' can be declared as pointer to const [constVariable] 2.8 grep-3.7/gnulib-tests/test-thread_create.c:49:13: style: Variable 'ret' can be declared with const [constVariable] head grep-3.7/lib/obstack.c:240:48: style: Parameter 'obj' can be declared as pointer to const [constParameter] 2.8 grep-3.7/lib/obstack.c:240:48: style: Parameter 'obj' can be declared with const [constParameter] head grep-3.7/lib/strtol.c:324:13: warning: Either the condition 's==end' is redundant or there is possible null pointer dereference: s. [nullPointerRedundantCheck] grep-3.7/lib/strtol.c:317:11: note: Assignment 'end=NULL', assigned value is 0 grep-3.7/lib/strtol.c:326:13: note: Assuming that condition 's==end' is not redundant grep-3.7/lib/strtol.c:298:10: note: Assignment 'save=s', assigned value is 0 grep-3.7/lib/strtol.c:298:8: note: save is assigned 's' here. grep-3.7/lib/strtol.c:324:13: note: Null pointer dereference 2.8 grep-3.7/lib/strtol.c:324:13: warning: Either the condition 's==end' is redundant or there is possible null pointer dereference: s. [nullPointerRedundantCheck] grep-3.7/lib/strtol.c:326:13: note: Assuming that condition 's==end' is not redundant grep-3.7/lib/strtol.c:298:10: note: Assignment 'save=s', assigned value is 0 grep-3.7/lib/strtol.c:298:8: note: save is assigned 's' here. grep-3.7/lib/strtol.c:324:13: note: Null pointer dereference head grep-3.7/src/kwset.c:818:45: warning: Either the condition '!tree' is redundant or there is possible null pointer dereference: tree. [nullPointerRedundantCheck] grep-3.7/src/kwset.c:821:23: note: Assuming that condition '!tree' is not redundant grep-3.7/src/kwset.c:818:45: note: Null pointer dereference 2.8 grep-3.7/src/kwset.c:841:22: warning: Either the condition '!tree' is redundant or there is possible null pointer dereference: tree. [nullPointerRedundantCheck] grep-3.7/src/kwset.c:821:23: note: Assuming that condition '!tree' is not redundant grep-3.7/src/kwset.c:841:22: note: Null pointer dereference DONE