From: Jan-Benedict Glaw Date: Sat, 3 Sep 2022 12:02:57 +0000 (+0200) Subject: nvptx: Silence unused variable warning in output_constant_pool_contents() X-Git-Tag: basepoints/gcc-14~4818 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08de065293f8b08158e1089fbacce9dbaba95077;p=thirdparty%2Fgcc.git nvptx: Silence unused variable warning in output_constant_pool_contents() Similar to the rs6000 code, nvptx defines ASM_OUTPUT_DEF_FROM_DECLS as well as ASM_OUTPUT_DEF. Make sure that the define's parameters are used by referencing them as (void) to silence a warning in output_constant_pool_contents(). 2022-09-30 Jan-Benedict Glaw gcc/ * config/nvptx/nvptx.h (ASM_OUTPUT_DEF): Reference macro arguments. --- diff --git a/gcc/config/nvptx/nvptx.h b/gcc/config/nvptx/nvptx.h index ed72c253191a..712974405668 100644 --- a/gcc/config/nvptx/nvptx.h +++ b/gcc/config/nvptx/nvptx.h @@ -321,6 +321,9 @@ struct GTY(()) machine_function #define ASM_OUTPUT_DEF(FILE,LABEL1,LABEL2) \ do \ { \ + (void) (FILE); \ + (void) (LABEL1); \ + (void) (LABEL2); \ gcc_unreachable (); \ } \ while (0)