From 3bac62c2b2243f923a2bbb35091e2b745d1cf8d9 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 19 Jan 2015 14:10:59 -0800 Subject: [PATCH] Add attribute unused to dummy arguments in ffi stub From-SVN: r219862 --- libgo/go/reflect/makefunc_ffi_c.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); -- 2.30.2