]> git.ipfire.org Git - thirdparty/gcc.git/commit
nvptx: Silence unused variable warning in output_constant_pool_contents()
authorJan-Benedict Glaw <jbglaw@lug-owl.de>
Mon, 5 Sep 2022 07:40:30 +0000 (09:40 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Mon, 5 Sep 2022 07:40:30 +0000 (09:40 +0200)
commit8d2253f407e73013cb6b7b045c120d4acf35bdc5
tree6fe71fdb100df16e175d592ee101cd294048c4c6
parent92e848d3aeb2b616512cc0e64274e58734fac9e7
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.

(cherry picked from commit 08de065293f8b08158e1089fbacce9dbaba95077)
gcc/ChangeLog.omp
gcc/config/nvptx/nvptx.h