Avoid "'dc' may be uninitialized" warning.
authortschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Jan 2014 19:06:44 +0000 (19:06 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 8 May 2014 16:18:28 +0000 (10:18 -0600)
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

libiberty/ChangeLog
libiberty/cp-demangle.c

index 083ec79cf977dc988fa188f8fbc71fefd471ab28..0a4496bb8ca2df5208aa70c8a5f832a0842804e5 100644 (file)
@@ -1,3 +1,8 @@
+2014-01-28  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * cp-demangle.c (d_demangle_callback): Put an abort call in place,
+       to help the compiler.
+
 2014-01-21  Tom Tromey  <tromey@redhat.com>
 
        * _doprint.c (checkit): Use stdarg, not VA_* macros.
index bf2ffa95a8df7566d06fbea44654f1523eee0eeb..3d5d33ef591dfd57f48753fba0ca7cb0d332f740 100644 (file)
@@ -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 <ian@wasabisystems.com>.
 
@@ -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
This page took 0.030266 seconds and 4 git commands to generate.