8028408: unused-value warning on forte.cpp when build on Mac
Summary: cast argument to void in function type definition
Reviewed-by: sla, sspitsyn
--- 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,