8028408: unused-value warning on forte.cpp when build on Mac
authordsamersoff
Wed, 18 Dec 2013 20:32:46 +0400
changeset 22191 f1b2f926ee72
parent 22190 d306a75a70d3
child 22192 15caf5793272
8028408: unused-value warning on forte.cpp when build on Mac Summary: cast argument to void in function type definition Reviewed-by: sla, sspitsyn
hotspot/src/share/vm/prims/forte.cpp
--- a/hotspot/src/share/vm/prims/forte.cpp	Wed Dec 18 08:39:06 2013 +0100
+++ b/hotspot/src/share/vm/prims/forte.cpp	Wed Dec 18 20:32:46 2013 +0400
@@ -613,7 +613,7 @@
 #ifdef __APPLE__
 // XXXDARWIN: Link errors occur even when __attribute__((weak_import))
 // is added
-#define collector_func_load(x0,x1,x2,x3,x4,x5,x6) (0)
+#define collector_func_load(x0,x1,x2,x3,x4,x5,x6) ((void)(0))
 #else
 void    collector_func_load(char* name,
                             void* null_argument_1,