Add attribute unused to dummy arguments in ffi stub
authorRichard Henderson <rth@gcc.gnu.org>
Mon, 19 Jan 2015 22:10:59 +0000 (14:10 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 19 Jan 2015 22:10:59 +0000 (14:10 -0800)
From-SVN: r219862

libgo/go/reflect/makefunc_ffi_c.c

index 2a98e9b101912170d012df2579ae60c800982fbe..06a41ef2ecd5959103fa09c86d7551edeeea3890 100644 (file)
@@ -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");