From: Indu Bhagat <indu.bhagat@oracle.com>
To: binutils@sourceware.org
Cc: Indu Bhagat <indu.bhagat@oracle.com>
Subject: [COMMITTED 1/6] gas: sframe: use ATTRIBUTE_UNUSED consistently
Date: Wed, 19 Apr 2023 15:11:20 -0700 [thread overview]
Message-ID: <20230419221125.502883-2-indu.bhagat@oracle.com> (raw)
In-Reply-To: <20230419221125.502883-1-indu.bhagat@oracle.com>
gas/
* gen-sframe.c (sframe_set_version): Use ATTRIBUTE_UNUSED
consistently.
(output_sframe): Likewise.
(sframe_set_fre_info): Remove the usage of ATTRIBUTE_UNUSED.
---
gas/gen-sframe.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gas/gen-sframe.c b/gas/gen-sframe.c
index c5470596d14..9e6a9d16a64 100644
--- a/gas/gen-sframe.c
+++ b/gas/gen-sframe.c
@@ -276,7 +276,7 @@ sframe_v1_set_func_info (unsigned int fde_type, unsigned int fre_type,
/* SFrame version specific operations setup. */
static void
-sframe_set_version (uint32_t sframe_version __attribute__((unused)))
+sframe_set_version (uint32_t sframe_version ATTRIBUTE_UNUSED)
{
sframe_ver_ops.format_version = SFRAME_VERSION_1;
@@ -297,7 +297,7 @@ sframe_set_fre_info (unsigned int base_reg, unsigned int num_offsets,
/* SFrame set func info. */
-ATTRIBUTE_UNUSED static unsigned char
+static unsigned char
sframe_set_func_info (unsigned int fde_type, unsigned int fre_type,
unsigned int pauth_key)
{
@@ -1366,7 +1366,7 @@ output_sframe (segT sframe_seg)
#else /* support_sframe_p */
void
-output_sframe (segT sframe_seg __attribute__((unused)))
+output_sframe (segT sframe_seg ATTRIBUTE_UNUSED)
{
}
--
2.39.2
next prev parent reply other threads:[~2023-04-19 22:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-19 22:11 [COMMITTED 0/6] Minor sframe related patches Indu Bhagat
2023-04-19 22:11 ` Indu Bhagat [this message]
2023-04-19 22:11 ` [COMMITTED 2/6] gas: sframe: fix comment Indu Bhagat
2023-04-19 22:11 ` [COMMITTED 3/6] libsframe: use return type of bool for predicate functions Indu Bhagat
2023-04-19 22:11 ` [COMMITTED 4/6] sframe: correct some typos Indu Bhagat
2023-04-19 22:11 ` [COMMITTED 5/6] libsframe: use consistent function argument names Indu Bhagat
2023-04-19 22:11 ` [COMMITTED 6/6] libsframe: minor formatting fixes in sframe_encoder_write_fre Indu Bhagat
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230419221125.502883-2-indu.bhagat@oracle.com \
--to=indu.bhagat@oracle.com \
--cc=binutils@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).