]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/cgo: annotate unused variable with __attribute__((unused))
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Tue, 9 Oct 2018 16:42:40 +0000 (22:12 +0530)
committerIan Lance Taylor <iant@golang.org>
Wed, 10 Oct 2018 00:25:54 +0000 (00:25 +0000)
Fixes #28095

Change-Id: Id8668d52986c9805213e8847f49fe42dfde2e01a
Reviewed-on: https://go-review.googlesource.com/c/140797
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/cgo/gcc_libinit.c

index 3dc5bde4ccb99369b8283ea078897adf0e70d6d3..3dafd10b7bc2965de4753393c235b7f6b94bafce 100644 (file)
@@ -63,7 +63,7 @@ _cgo_wait_runtime_init_done() {
 }
 
 void
-x_cgo_notify_runtime_init_done(void* dummy) {
+x_cgo_notify_runtime_init_done(void* dummy __attribute__ ((unused))) {
        pthread_mutex_lock(&runtime_init_mu);
        runtime_init_done = 1;
        pthread_cond_broadcast(&runtime_init_cond);