From 5862b677f13e965a29a7099b83e2f4f598d3b2a7 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 1 Oct 2010 11:07:23 +0200 Subject: 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. --- src/tr.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/tr.c b/src/tr.c index 479d3d367..eae96873c 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: -- cgit v1.2.3-54-g00ecf