summaryrefslogtreecommitdiff
path: root/src/tr.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-10-01 11:07:23 +0200
committerJim Meyering <meyering@redhat.com>2010-10-03 20:42:41 +0200
commit5862b677f13e965a29a7099b83e2f4f598d3b2a7 (patch)
tree8bcabba352b2f552f1dd919cd83e5ed7da8f3610 /src/tr.c
parentd4f304d7218b1ffd659684ae287a57beb297f2e7 (diff)
downloadcoreutils-5862b677f13e965a29a7099b83e2f4f598d3b2a7.tar.xz
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.
Diffstat (limited to 'src/tr.c')
-rw-r--r--src/tr.c1
1 files changed, 1 insertions, 0 deletions
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: