bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patch for regex_internal.c bogus warnings


From: Paul Eggert
Subject: patch for regex_internal.c bogus warnings
Date: Fri, 19 Aug 2005 18:05:12 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

I installed this, imported from coreutils.  I filed glibc bug 1218.

2005-08-19  Paul Eggert  <address@hidden>

        * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
        [defined lint]: Suppress bogus uninitialized-variable warnings.
        * config/srclist.text: Add glibc bug 1218.

--- lib/regex_internal.c        19 Aug 2005 23:00:55 -0000      1.2
+++ lib/regex_internal.c        20 Aug 2005 00:58:13 -0000      1.3
@@ -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, node
   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;
--- config/srclist.txt.~1.71.~  2005-08-19 17:07:54.000000000 -0700
+++ config/srclist.txt  2005-08-19 18:01:36.000000000 -0700
@@ -105,6 +105,7 @@ $LIBCSRC/posix/regex.c                      lib gpl
 #$LIBCSRC/posix/regex.h                        lib gpl
 #
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1215
+# http://sources.redhat.com/bugzilla/show_bug.cgi?id=1218
 #$LIBCSRC/posix/regex_internal.c               lib gpl
 #
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1054




reply via email to

[Prev in Thread] Current Thread [Next in Thread]