diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-19 15:32:43 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-19 15:32:43 +0000 |
commit | 1a7c0ccb66f80bda54058561162b5446b9d9d1c9 (patch) | |
tree | fe9acae7789cd322367a02a4039509a1a001b489 /gcc/ggc-page.c | |
parent | 843bd2fa78007c193692f6382edf3b6b5c2d3a62 (diff) | |
download | gcc-1a7c0ccb66f80bda54058561162b5446b9d9d1c9.tar.gz |
./:
* ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
* sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
version.
* c-decl.c (finish_decl): If -Wc++-compat, warn about
uninitialized const.
testsuite/:
* gcc.dg/Wcxx-compat-17.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148710 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc-page.c')
-rw-r--r-- | gcc/ggc-page.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c index 4f872b294f1..744355e3de3 100644 --- a/gcc/ggc-page.c +++ b/gcc/ggc-page.c @@ -2165,7 +2165,7 @@ ggc_pch_write_object (struct ggc_pch_data *d ATTRIBUTE_UNUSED, size_t size, bool is_string ATTRIBUTE_UNUSED) { unsigned order; - static const char emptyBytes[256]; + static const char emptyBytes[256] = { 0 }; if (size < NUM_SIZE_LOOKUP) order = size_lookup[size]; |