aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfvsb/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elfvsb/main.c')
-rw-r--r--ld/testsuite/ld-elfvsb/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/testsuite/ld-elfvsb/main.c b/ld/testsuite/ld-elfvsb/main.c
index 1ce2e3e..f071260 100644
--- a/ld/testsuite/ld-elfvsb/main.c
+++ b/ld/testsuite/ld-elfvsb/main.c
@@ -82,7 +82,7 @@ visibility ()
static int
main_visibility_check ()
{
- return visibility_funptr () != visibility;
+ return ((int (*) (void)) visibility_funptr ()) != visibility;
}
int visibility_var = 1;
@@ -117,7 +117,7 @@ main_visibility_check ()
#ifdef WEAK_TEST
return visibility_funptr () == NULL;
#else
- return visibility_funptr () == visibility;
+ return ((int (*) (void)) visibility_funptr ()) == visibility;
#endif
}