aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorTsukasa OI <research_trasio@irq.a4lg.com>2022-09-21 13:43:17 +0000
committerTsukasa OI <research_trasio@irq.a4lg.com>2022-09-21 13:43:17 +0000
commit0242db993f8ad0a0de16dafc4ebd35bb6190c833 (patch)
tree4b1c20f72bc14aad17217b59d267891ee480418e /gas
parentf9a59eea78428159a9522bd64ec354a872f1dc31 (diff)
downloadgdb-0242db993f8ad0a0de16dafc4ebd35bb6190c833.zip
gdb-0242db993f8ad0a0de16dafc4ebd35bb6190c833.tar.gz
gdb-0242db993f8ad0a0de16dafc4ebd35bb6190c833.tar.bz2
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.
Diffstat (limited to 'gas')
-rw-r--r--gas/config/tc-riscv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c
index 42d7bf6..5411d68 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;
}