From: tschwinge Date: Tue, 28 Jan 2014 19:06:44 +0000 (+0000) Subject: Avoid "'dc' may be uninitialized" warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8458514f6aa55ed139c0d28c6822ef98bc9f3497;p=binutils-gdb.git Avoid "'dc' may be uninitialized" warning. libiberty/ * cp-demangle.c (d_demangle_callback): Put an abort call in place, to help the compiler. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207200 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 083ec79cf97..0a4496bb8ca 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2014-01-28 Thomas Schwinge + + * cp-demangle.c (d_demangle_callback): Put an abort call in place, + to help the compiler. + 2014-01-21 Tom Tromey * _doprint.c (checkit): Use stdarg, not VA_* macros. diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c index bf2ffa95a8d..3d5d33ef591 100644 --- a/libiberty/cp-demangle.c +++ b/libiberty/cp-demangle.c @@ -1,5 +1,5 @@ /* Demangler for g++ V3 ABI. - Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 + Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2014 Free Software Foundation, Inc. Written by Ian Lance Taylor . @@ -5824,6 +5824,8 @@ d_demangle_callback (const char *mangled, int options, NULL); d_advance (&di, strlen (d_str (&di))); break; + default: + abort (); /* We have listed all the cases. */ } /* If DMGL_PARAMS is set, then if we didn't consume the entire