diff options
author | gerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-04 20:16:08 +0000 |
---|---|---|
committer | gerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-04 20:16:08 +0000 |
commit | fd88e799a0f0264b2571b9d7407eadc19d4b8bfe (patch) | |
tree | 3cafff04202b098d4a87c1cb7cddbdd009837bbe /libbacktrace | |
parent | 7a4f322732b94290a86d725bd30cccf96a07f1c4 (diff) | |
download | gcc-fd88e799a0f0264b2571b9d7407eadc19d4b8bfe.tar.gz |
* btest.c (f23): Avoid uninitialized variable warning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192102 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libbacktrace')
-rw-r--r-- | libbacktrace/ChangeLog | 4 | ||||
-rw-r--r-- | libbacktrace/btest.c | 2 |
2 files changed, 5 insertions, 1 deletions
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 <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, 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); } |