From fd88e799a0f0264b2571b9d7407eadc19d4b8bfe Mon Sep 17 00:00:00 2001 From: gerald Date: Thu, 4 Oct 2012 20:16:08 +0000 Subject: [PATCH] * btest.c (f23): Avoid uninitialized variable warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192102 138bc75d-0d04-0410-961f-82ee72b054a4 --- libbacktrace/ChangeLog | 4 ++++ libbacktrace/btest.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index 528b4930204..16410566d9b 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,7 @@ +2012-10-04 Gerald Pfeifer + + * btest.c (f23): Avoid uninitialized variable warning. + 2012-10-04 Ian Lance Taylor * dwarf.c: If the system header files do not declare strnlen, diff --git a/libbacktrace/btest.c b/libbacktrace/btest.c index 085891a6e69..16f25b45013 100644 --- a/libbacktrace/btest.c +++ b/libbacktrace/btest.c @@ -486,7 +486,7 @@ f23 (int f1line, int f2line) case 2: expected = "test3"; break; - case 3: + default: assert (0); } -- 2.11.4.GIT