diff options
author | Gerald Pfeifer <gerald@pfeifer.com> | 2012-10-04 20:16:08 +0000 |
---|---|---|
committer | Gerald Pfeifer <gerald@gcc.gnu.org> | 2012-10-04 20:16:08 +0000 |
commit | 068ef6d10d29be1ef5bee2e91ff3dfec19081a9b (patch) | |
tree | 3cafff04202b098d4a87c1cb7cddbdd009837bbe | |
parent | 42adab07c3e137e56f066979fa761d480560d7c8 (diff) | |
download | gcc-068ef6d10d29be1ef5bee2e91ff3dfec19081a9b.zip gcc-068ef6d10d29be1ef5bee2e91ff3dfec19081a9b.tar.gz gcc-068ef6d10d29be1ef5bee2e91ff3dfec19081a9b.tar.bz2 |
* btest.c (f23): Avoid uninitialized variable warning.
From-SVN: r192102
-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 528b493..1641056 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 085891a..16f25b4 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); } |