* [binutils-gdb] RISC-V: Fix riscv_set_tso declaration
@ 2022-09-21 13:47 Tsukasa OI
0 siblings, 0 replies; only message in thread
From: Tsukasa OI @ 2022-09-21 13:47 UTC (permalink / raw)
To: bfd-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0242db993f8ad0a0de16dafc4ebd35bb6190c833
commit 0242db993f8ad0a0de16dafc4ebd35bb6190c833
Author: Tsukasa OI <research_trasio@irq.a4lg.com>
Date: Wed Sep 21 13:43:17 2022 +0000
RISC-V: Fix riscv_set_tso declaration
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.
Diff:
---
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-21 13:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-21 13:47 [binutils-gdb] RISC-V: Fix riscv_set_tso declaration Tsukasa OI
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).