summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-19 22:10:59 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-19 22:10:59 +0000
commit30018bc97bc01331dad6ed746fad0cc6b7dbe187 (patch)
treee142b54dc562664e1bf1ae621860bd929ee31e87 /libgo
parent6bf7b9a18177036e539a1c9938825d64e861a0c2 (diff)
downloadgcc-30018bc97bc01331dad6ed746fad0cc6b7dbe187.tar.gz
Add attribute unused to dummy arguments in ffi stub
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219862 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rw-r--r--libgo/go/reflect/makefunc_ffi_c.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgo/go/reflect/makefunc_ffi_c.c b/libgo/go/reflect/makefunc_ffi_c.c
index 2a98e9b1019..06a41ef2ecd 100644
--- a/libgo/go/reflect/makefunc_ffi_c.c
+++ b/libgo/go/reflect/makefunc_ffi_c.c
@@ -83,7 +83,8 @@ makeFuncFFI(const struct __go_func_type *ftyp, void *impl)
#else /* !defined(USE_LIBFFI_CLOSURES) */
void
-makeFuncFFI(const struct __go_func_type *ftyp, void *impl)
+makeFuncFFI(const struct __go_func_type *ftyp __attribute__ ((unused)),
+ void *impl __attribute__ ((unused)))
{
runtime_panicstring ("libgo built without FFI does not support "
"reflect.MakeFunc");