From: Richard Henderson Date: Mon, 19 Jan 2015 22:10:59 +0000 (-0800) Subject: Add attribute unused to dummy arguments in ffi stub X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3bac62c2b2243f923a2bbb35091e2b745d1cf8d9;p=gcc.git Add attribute unused to dummy arguments in ffi stub From-SVN: r219862 --- 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");