Tue, 11 Feb 2014 21:32:19 -0800
8033215: clang: node.cpp:284 IDX_INIT macro use uninitialized field _out
Reviewed-by: twisti, kvn
src/share/vm/opto/node.cpp | file | annotate | diff | comparison | revisions |
1.1 --- a/src/share/vm/opto/node.cpp Sat Jan 25 06:34:42 2020 +0000 1.2 +++ b/src/share/vm/opto/node.cpp Tue Feb 11 21:32:19 2014 -0800 1.3 @@ -286,6 +286,10 @@ 1.4 #ifdef _MSC_VER // the IDX_INIT hack falls foul of warning C4355 1.5 #pragma warning( disable:4355 ) // 'this' : used in base member initializer list 1.6 #endif 1.7 +#ifdef __clang__ 1.8 +#pragma clang diagnostic push 1.9 +#pragma GCC diagnostic ignored "-Wuninitialized" 1.10 +#endif 1.11 1.12 // Out-of-line code from node constructors. 1.13 // Executed only when extra debug info. is being passed around. 1.14 @@ -493,6 +497,10 @@ 1.15 _in[6] = n6; if (n6 != NULL) n6->add_out((Node *)this); 1.16 } 1.17 1.18 +#ifdef __clang__ 1.19 +#pragma clang diagnostic pop 1.20 +#endif 1.21 + 1.22 1.23 //------------------------------clone------------------------------------------ 1.24 // Clone a Node.