]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: suppress a bogus used-uninitialized warning in tr.c
authorJim Meyering <meyering@redhat.com>
Fri, 1 Oct 2010 09:07:23 +0000 (11:07 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 3 Oct 2010 18:42:41 +0000 (20:42 +0200)
* src/tr.c (string2_extend): Insert an abort call to tell
gcc that char_to_repeat is not used uninitialized.

src/tr.c

index 479d3d3671fbf3c86cbe3b6897417a7d7fbb58c7..eae96873cca40b928b373361f7bb7cbbba3d3c13 100644 (file)
--- a/src/tr.c
+++ b/src/tr.c
@@ -1420,6 +1420,7 @@ string2_extend (const struct Spec_list *s1, struct Spec_list *s2)
       error (EXIT_FAILURE, 0,
              _("when translating with string1 longer than string2,\n\
 the latter string must not end with a character class"));
+      abort (); /* inform gcc that the above use of error never returns. */
       break;
 
     case RE_REPEATED_CHAR: