From: Jim Meyering Date: Fri, 1 Oct 2010 09:07:23 +0000 (+0200) Subject: maint: suppress a bogus used-uninitialized warning in tr.c X-Git-Tag: v8.6~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5862b677f13e965a29a7099b83e2f4f598d3b2a7;p=thirdparty%2Fcoreutils.git maint: suppress a bogus used-uninitialized warning in tr.c * src/tr.c (string2_extend): Insert an abort call to tell gcc that char_to_repeat is not used uninitialized. --- diff --git a/src/tr.c b/src/tr.c index 479d3d3671..eae96873cc 100644 --- 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: