projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b984df
)
Add attribute unused to dummy arguments in ffi stub
author
Richard Henderson
<rth@gcc.gnu.org>
Mon, 19 Jan 2015 22:10:59 +0000
(14:10 -0800)
committer
Richard 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
patch
|
blob
|
history
diff --git
a/libgo/go/reflect/makefunc_ffi_c.c
b/libgo/go/reflect/makefunc_ffi_c.c
index 2a98e9b101912170d012df2579ae60c800982fbe..06a41ef2ecd5959103fa09c86d7551edeeea3890 100644
(file)
--- 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");