From 30018bc97bc01331dad6ed746fad0cc6b7dbe187 Mon Sep 17 00:00:00 2001 From: rth Date: Mon, 19 Jan 2015 22:10:59 +0000 Subject: 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 --- libgo/go/reflect/makefunc_ffi_c.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libgo/go/reflect') 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"); -- cgit v1.2.1