hotspot/src/share/vm/utilities/debug.hpp
changeset 29691 c539e3e94ef1
parent 28943 679546f0cc1f
child 31340 2f9ff278bb13
--- a/hotspot/src/share/vm/utilities/debug.hpp	Tue Mar 17 15:53:55 2015 +0100
+++ b/hotspot/src/share/vm/utilities/debug.hpp	Tue Mar 03 19:47:49 2015 -0500
@@ -222,9 +222,8 @@
 template<bool x> struct STATIC_ASSERT_FAILURE;
 template<> struct STATIC_ASSERT_FAILURE<true> { enum { value = 1 }; };
 
-#define STATIC_ASSERT(Cond)                             \
-  typedef char STATIC_ASSERT_FAILURE_ ## __LINE__ [     \
-    STATIC_ASSERT_FAILURE< (Cond) >::value ]
+#define STATIC_ASSERT(Cond) \
+  typedef char STATIC_ASSERT_DUMMY_TYPE[ STATIC_ASSERT_FAILURE< (Cond) >::value ]
 
 // out of shared space reporting
 enum SharedSpaceType {