Commit 3bac62c2 by Richard Henderson

Add attribute unused to dummy arguments in ffi stub

From-SVN: r219862
parent 6b984df0
...@@ -83,7 +83,8 @@ makeFuncFFI(const struct __go_func_type *ftyp, void *impl) ...@@ -83,7 +83,8 @@ makeFuncFFI(const struct __go_func_type *ftyp, void *impl)
#else /* !defined(USE_LIBFFI_CLOSURES) */ #else /* !defined(USE_LIBFFI_CLOSURES) */
void 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 " runtime_panicstring ("libgo built without FFI does not support "
"reflect.MakeFunc"); "reflect.MakeFunc");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment