public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Tsukasa OI <research_trasio@irq.a4lg.com>
To: Tsukasa OI <research_trasio@irq.a4lg.com>,
	Nelson Chu <nelson@rivosinc.com>,
	Shihua LIAO <shihua@iscas.ac.cn>
Cc: binutils@sourceware.org
Subject: [COMMITTED PATCH 1/1] RISC-V: Fix riscv_set_tso declaration
Date: Wed, 21 Sep 2022 13:53:27 +0000	[thread overview]
Message-ID: <0242db993f8ad0a0de16dafc4ebd35bb6190c833.1663768386.git.research_trasio@irq.a4lg.com> (raw)
In-Reply-To: <cover.1663768386.git.research_trasio@irq.a4lg.com>

To avoid -Werror=strict-prototypes, this commit changes () to (void).
This is because "()" possibly means a function prototype with indeterminate
arguments on old C standards.

gas/ChangeLog:

	* config/tc-riscv.c (riscv_set_tso): Fix declaration.
---
 gas/config/tc-riscv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c
index 42d7bf62e4f..5411d68a401 100644
--- a/gas/config/tc-riscv.c
+++ b/gas/config/tc-riscv.c
@@ -260,7 +260,7 @@ riscv_set_rvc (bool rvc_value)
 /* Turn on the tso flag for elf_flags once we have enabled ztso extension.  */
 
 static void
-riscv_set_tso ()
+riscv_set_tso (void)
 {
   elf_flags |= EF_RISCV_TSO;
 }
-- 
2.34.1


      reply	other threads:[~2022-09-21 13:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-21 13:53 [COMMITTED PATCH 0/1] RISC-V: Minor fix to the 'Ztso' extension support, part 2 Tsukasa OI
2022-09-21 13:53 ` Tsukasa OI [this message]

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=0242db993f8ad0a0de16dafc4ebd35bb6190c833.1663768386.git.research_trasio@irq.a4lg.com \
    --to=research_trasio@irq.a4lg.com \
    --cc=binutils@sourceware.org \
    --cc=nelson@rivosinc.com \
    --cc=shihua@iscas.ac.cn \
    /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).