Mercurial > hg > truffle
comparison src/share/vm/prims/forte.cpp @ 14180:03e9e2e3028b
8028408: unused-value warning on forte.cpp when build on Mac
Summary: cast argument to void in function type definition
Reviewed-by: sla, sspitsyn
author | dsamersoff |
---|---|
date | Wed, 18 Dec 2013 20:32:46 +0400 |
parents | e619a2766bcc |
children | db1ff6781ab4 |
comparison
equal
deleted
inserted
replaced
14179:dbcb1dd0785b | 14180:03e9e2e3028b |
---|---|
611 // Because it is weakly bound, the calls become NOP's when the library | 611 // Because it is weakly bound, the calls become NOP's when the library |
612 // isn't present. | 612 // isn't present. |
613 #ifdef __APPLE__ | 613 #ifdef __APPLE__ |
614 // XXXDARWIN: Link errors occur even when __attribute__((weak_import)) | 614 // XXXDARWIN: Link errors occur even when __attribute__((weak_import)) |
615 // is added | 615 // is added |
616 #define collector_func_load(x0,x1,x2,x3,x4,x5,x6) (0) | 616 #define collector_func_load(x0,x1,x2,x3,x4,x5,x6) ((void)(0)) |
617 #else | 617 #else |
618 void collector_func_load(char* name, | 618 void collector_func_load(char* name, |
619 void* null_argument_1, | 619 void* null_argument_1, |
620 void* null_argument_2, | 620 void* null_argument_2, |
621 void *vaddr, | 621 void *vaddr, |