Mercurial > hg > graal-compiler
diff src/share/vm/opto/node.cpp @ 14171:8c0e92c8c45b
more workarounds to support clang 5.1 on Mac OS X
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 13 Mar 2014 14:48:01 +0100 |
parents | 766fac3395d6 |
children | 29ccc4cbabca |
line wrap: on
line diff
--- a/src/share/vm/opto/node.cpp Thu Mar 13 13:49:03 2014 +0100 +++ b/src/share/vm/opto/node.cpp Thu Mar 13 14:48:01 2014 +0100 @@ -285,6 +285,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. @@ -468,6 +472,9 @@ _in[6] = n6; if (n6 != NULL) n6->add_out((Node *)this); } +#ifdef __clang__ +#pragma clang diagnostic pop +#endif //------------------------------clone------------------------------------------ // Clone a Node.