diff options
author | Jan-Benedict Glaw <jbglaw@lug-owl.de> | 2022-09-03 14:02:57 +0200 |
---|---|---|
committer | Jan-Benedict Glaw <jbglaw@lug-owl.de> | 2022-09-03 14:10:27 +0200 |
commit | 08de065293f8b08158e1089fbacce9dbaba95077 (patch) | |
tree | 160cf4042ac476ad0cffc5839c1808216782c7e6 /gcc/config/nvptx/nvptx.h | |
parent | a651e6d59188da8992f8bfae2df1cb4e6316f9e6 (diff) | |
download | gcc-08de065293f8b08158e1089fbacce9dbaba95077.zip gcc-08de065293f8b08158e1089fbacce9dbaba95077.tar.gz gcc-08de065293f8b08158e1089fbacce9dbaba95077.tar.bz2 |
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 <jbglaw@lug-owl.de>
gcc/
* config/nvptx/nvptx.h (ASM_OUTPUT_DEF): Reference macro arguments.
Diffstat (limited to 'gcc/config/nvptx/nvptx.h')
-rw-r--r-- | gcc/config/nvptx/nvptx.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/nvptx/nvptx.h b/gcc/config/nvptx/nvptx.h index ed72c25..7129744 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) |