runtime: mark non-x86 aeshashbody parameters as unused
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 8 Dec 2016 20:43:19 +0000 (20:43 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 8 Dec 2016 20:43:19 +0000 (20:43 +0000)
    Avoids warnings during the build.

    Reviewed-on: https://go-review.googlesource.com/34142

From-SVN: r243459

gcc/go/gofrontend/MERGE
libgo/runtime/aeshash.c

index 6bc3797e895b6976b0a66f75412971cfbdc7c94f..e51276861c659f4acc1239a7eb07731ded9259bd 100644 (file)
@@ -1,4 +1,4 @@
-78e3527fcaf4ffd33b22e39a56e5d076844302be
+ac59bb383e1b446c68465af793722dd0e84abefb
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index faa90e073fa7b7fc914d7e61821621f274d16746..bdfea5f93feeb3cf80395fe655ef511ef228bc10 100644 (file)
@@ -575,7 +575,10 @@ uintptr aeshashbody(void* p, uintptr seed, uintptr size, Slice aeskeysched) {
 
 #else // !defined(__i386__) && !defined(__x86_64__)
 
-uintptr aeshashbody(void* p, uintptr seed, uintptr size, Slice aeskeysched) {
+uintptr aeshashbody(void* p __attribute__((unused)),
+                   uintptr seed __attribute__((unused)),
+                   uintptr size __attribute__((unused)),
+                   Slice aeskeysched __attribute__((unused))) {
        // We should never get here on a non-x86 system.
        runtime_throw("impossible call to aeshashbody");
 }