From dd455df70cd2d33120f0f4770ce808f56febafad Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Fri, 19 Jun 2020 18:12:11 +0200 Subject: [PATCH] amdgcn: Silence compile warnings gcc/ChangeLog: * config/gcn/gcn.c (gcn_related_vector_mode): Add ARG_UNUSED. (output_file_start): Use const 'char *'. --- gcc/config/gcn/gcn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/config/gcn/gcn.c b/gcc/config/gcn/gcn.c index fff0e8c..b6ff0bb 100644 --- a/gcc/config/gcn/gcn.c +++ b/gcc/config/gcn/gcn.c @@ -4038,8 +4038,8 @@ gcn_vectorize_preferred_simd_mode (scalar_mode mode) In particular, we do *not* want to match vector bit-size. */ static opt_machine_mode -gcn_related_vector_mode (machine_mode vector_mode, scalar_mode element_mode, - poly_uint64 nunits) +gcn_related_vector_mode (machine_mode ARG_UNUSED (vector_mode), + scalar_mode element_mode, poly_uint64 nunits) { if (known_ne (nunits, 0U) && known_ne (nunits, 64U)) return VOIDmode; @@ -4937,7 +4937,7 @@ gcn_fixup_accel_lto_options (tree fndecl) static void output_file_start (void) { - char *cpu; + const char *cpu; switch (gcn_arch) { case PROCESSOR_FIJI: cpu = "gfx803"; break; -- 2.7.4