aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/gcn
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2024-01-23 11:21:00 +0100
committerJakub Jelinek <jakub@redhat.com>2024-01-23 11:21:00 +0100
commitbd1703b79c14331ce4d894ac0432db5e098b6244 (patch)
tree0a42c952102afbb12142c2b704ee869be13e3409 /gcc/config/gcn
parente2f3057fc911f9f55986b3de237b0155c0e09fe8 (diff)
downloadgcc-bd1703b79c14331ce4d894ac0432db5e098b6244.zip
gcc-bd1703b79c14331ce4d894ac0432db5e098b6244.tar.gz
gcc-bd1703b79c14331ce4d894ac0432db5e098b6244.tar.bz2
gcn: Fix a warning
I see ../../gcc/config/gcn/gcn.cc: In function ‘void gcn_hsa_declare_function_name(FILE*, const char*, tree)’: ../../gcc/config/gcn/gcn.cc:6568:67: warning: unused parameter ‘decl’ [-Wunused-parameter] 6568 | gcn_hsa_declare_function_name (FILE *file, const char *name, tree decl) | ~~~~~^~~~ warning presumably since r14-6945-gc659dd8bfb55e02a1b97407c1c28f7a0e8f7f09b Previously, the argument was anonymous, but now it is passed to a macro which ignores it, so I think we should go with ATTRIBUTE_UNUSED. 2024-01-23 Jakub Jelinek <jakub@redhat.com> * config/gcn/gcn.cc (gcn_hsa_declare_function_name): Add ATTRIBUTE_UNUSED to decl.
Diffstat (limited to 'gcc/config/gcn')
-rw-r--r--gcc/config/gcn/gcn.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/gcn/gcn.cc b/gcc/config/gcn/gcn.cc
index 50467bc..e668ce7 100644
--- a/gcc/config/gcn/gcn.cc
+++ b/gcc/config/gcn/gcn.cc
@@ -6565,7 +6565,8 @@ output_file_start (void)
comments that pass information to mkoffload. */
void
-gcn_hsa_declare_function_name (FILE *file, const char *name, tree decl)
+gcn_hsa_declare_function_name (FILE *file, const char *name,
+ tree decl ATTRIBUTE_UNUSED)
{
int sgpr, vgpr, avgpr;
bool xnack_enabled = TARGET_XNACK;