* btest.c (f23): Avoid uninitialized variable warning.
authorGerald Pfeifer <gerald@pfeifer.com>
Thu, 4 Oct 2012 20:16:08 +0000 (20:16 +0000)
committerGerald Pfeifer <gerald@gcc.gnu.org>
Thu, 4 Oct 2012 20:16:08 +0000 (20:16 +0000)
From-SVN: r192102

libbacktrace/ChangeLog
libbacktrace/btest.c

index 528b493..1641056 100644 (file)
@@ -1,3 +1,7 @@
+2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
+
+       * btest.c (f23): Avoid uninitialized variable warning.
+       
 2012-10-04  Ian Lance Taylor  <iant@google.com>
 
        * dwarf.c: If the system header files do not declare strnlen,
index 085891a..16f25b4 100644 (file)
@@ -486,7 +486,7 @@ f23 (int f1line, int f2line)
                case 2:
                  expected = "test3";
                  break;
-               case 3:
+               default:
                  assert (0);
                }