Mercurial > hg > icedtea8-forest > hotspot
changeset 10602:a9ee6b70a32e
8033215: clang: node.cpp:284 IDX_INIT macro use uninitialized field _out
Reviewed-by: twisti, kvn
author | henryjen |
---|---|
date | Tue, 11 Feb 2014 21:32:19 -0800 |
parents | 147dfbe6ffa1 |
children | 04f3503b80c5 |
files | src/share/vm/opto/node.cpp |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/opto/node.cpp Sat Jan 25 06:34:42 2020 +0000 +++ b/src/share/vm/opto/node.cpp Tue Feb 11 21:32:19 2014 -0800 @@ -286,6 +286,10 @@ #ifdef _MSC_VER // the IDX_INIT hack falls foul of warning C4355 #pragma warning( disable:4355 ) // 'this' : used in base member initializer list #endif +#ifdef __clang__ +#pragma clang diagnostic push +#pragma GCC diagnostic ignored "-Wuninitialized" +#endif // Out-of-line code from node constructors. // Executed only when extra debug info. is being passed around. @@ -493,6 +497,10 @@ _in[6] = n6; if (n6 != NULL) n6->add_out((Node *)this); } +#ifdef __clang__ +#pragma clang diagnostic pop +#endif + //------------------------------clone------------------------------------------ // Clone a Node.