Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
grep: remove redundant regflags assignments
[gitweb.git]
/
builtin
/
grep.c
diff --git
a/builtin/grep.c
b/builtin/grep.c
index 3ffb5b4e8176bbcd1ecf2e4ae2dc84aee968cd22..a191e2976bacc4099926c917a10e6e768dededd1 100644
(file)
--- a/
builtin/grep.c
+++ b/
builtin/grep.c
@@
-495,6
+495,8
@@
static void compile_submodule_options(const struct grep_opt *opt,
break;
case GREP_PATTERN_TYPE_UNSPECIFIED:
break;
+ default:
+ die("BUG: Added a new grep pattern type without updating switch statement");
}
for (pattern = opt->pattern_list; pattern != NULL;