summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-12-25 20:48:32 +0100
committerJim Meyering <meyering@redhat.com>2010-01-06 10:34:59 +0100
commit3ba2c9926fee7e6ecbb1bcdaf77a462e4e5fe061 (patch)
tree334be520726d811783e76dae9269857b0ce4035e
parent4e091d3fc3c8080a965fa5f65bcc81fe672c96f6 (diff)
downloadgrep-3ba2c9926fee7e6ecbb1bcdaf77a462e4e5fe061.tar.gz
build: avoid shadowing warning for unused "rs"
* src/dfa.c (transit_state): Remove dead stores; move a declaration "down". Ignore transit_state_consume_1char return value.
-rw-r--r--src/dfa.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dfa.c b/src/dfa.c
index 7f698783..3fbc0eb5 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -2682,7 +2682,6 @@ transit_state (struct dfa *d, int s, unsigned char const **pp)
int nelem = d->states[s].mbps.nelem; /* Just a alias. */
position_set follows;
unsigned char const *p1 = *pp;
- status_transit_state rs;
wchar_t wc;
if (nelem > 0)
@@ -2725,7 +2724,7 @@ transit_state (struct dfa *d, int s, unsigned char const **pp)
not be a character but a (multi character) collating element.
We enumerate all of the positions which `s' can reach by consuming
`maxlen' bytes. */
- rs = transit_state_consume_1char(d, s, pp, match_lens, &mbclen, &follows);
+ transit_state_consume_1char(d, s, pp, match_lens, &mbclen, &follows);
wc = inputwcs[*pp - mbclen - buf_begin];
s1 = state_index(d, &follows, wc == L'\n', iswalnum(wc));
@@ -2734,7 +2733,7 @@ transit_state (struct dfa *d, int s, unsigned char const **pp)
while (*pp - p1 < maxlen)
{
follows.nelem = 0;
- rs = transit_state_consume_1char(d, s1, pp, NULL, &mbclen, &follows);
+ transit_state_consume_1char(d, s1, pp, NULL, &mbclen, &follows);
for (i = 0; i < nelem ; i++)
{