From 6ce32a50a76ee24dff890937b5b99e8110e7a4a1 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 20 Aug 2005 00:58:13 +0000 Subject: [PATCH] (re_acquire_state, re_acquire_state_context) [defined lint]: Suppress bogus uninitialized-variable warnings. --- lib/regex_internal.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/regex_internal.c b/lib/regex_internal.c index 615c8c1b6d..6e46199a5a 100644 --- a/lib/regex_internal.c +++ b/lib/regex_internal.c @@ -1409,6 +1409,10 @@ re_acquire_state (err, dfa, nodes) re_dfastate_t *new_state; struct re_state_table_entry *spot; int i; +#ifdef lint + /* Suppress bogus uninitialized-variable warnings. */ + *err = REG_NOERROR; +#endif if (BE (nodes->nelem == 0, 0)) { *err = REG_NOERROR; @@ -1458,6 +1462,10 @@ re_acquire_state_context (err, dfa, nodes, context) re_dfastate_t *new_state; struct re_state_table_entry *spot; int i; +#ifdef lint + /* Suppress bogus uninitialized-variable warnings. */ + *err = REG_NOERROR; +#endif if (nodes->nelem == 0) { *err = REG_NOERROR; -- 2.30.2