aboutsummaryrefslogtreecommitdiff
path: root/libgo/go
diff options
context:
space:
mode:
authorRichard Henderson <rth@gcc.gnu.org>2015-01-19 14:10:59 -0800
committerRichard Henderson <rth@gcc.gnu.org>2015-01-19 14:10:59 -0800
commit3bac62c2b2243f923a2bbb35091e2b745d1cf8d9 (patch)
treee142b54dc562664e1bf1ae621860bd929ee31e87 /libgo/go
parent6b984df0dadb6a050587b6b161df9d8e976c7ac7 (diff)
downloadgcc-3bac62c2b2243f923a2bbb35091e2b745d1cf8d9.zip
gcc-3bac62c2b2243f923a2bbb35091e2b745d1cf8d9.tar.gz
gcc-3bac62c2b2243f923a2bbb35091e2b745d1cf8d9.tar.bz2
Add attribute unused to dummy arguments in ffi stub
From-SVN: r219862
Diffstat (limited to 'libgo/go')
-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 2a98e9b..06a41ef 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");