Add attribute unused to dummy arguments in ffi stub

From-SVN: r219862
This commit is contained in:
Richard Henderson 2015-01-19 14:10:59 -08:00
parent 6b984df0da
commit 3bac62c2b2

View 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");