(re_acquire_state, re_acquire_state_context) [defined lint]:
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 20 Aug 2005 00:58:13 +0000 (00:58 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 20 Aug 2005 00:58:13 +0000 (00:58 +0000)
Suppress bogus uninitialized-variable warnings.

lib/regex_internal.c

index 615c8c1b6db1a927034b1b6ed1302340372390de..6e46199a5aa9c0cd3856d10e0b7caca84c6d67c4 100644 (file)
@@ -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;