]> 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>
Sat, 3 Sep 2022 12:02:57 +0000 (14:02 +0200)
committerJan-Benedict Glaw <jbglaw@lug-owl.de>
Sat, 3 Sep 2022 12:10:27 +0000 (14:10 +0200)
commit08de065293f8b08158e1089fbacce9dbaba95077
tree160cf4042ac476ad0cffc5839c1808216782c7e6
parenta651e6d59188da8992f8bfae2df1cb4e6316f9e6
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.
gcc/config/nvptx/nvptx.h