]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
RISC-V: Fix riscv_set_tso declaration
authorTsukasa OI <research_trasio@irq.a4lg.com>
Wed, 21 Sep 2022 13:43:17 +0000 (13:43 +0000)
committerTsukasa OI <research_trasio@irq.a4lg.com>
Wed, 21 Sep 2022 13:43:17 +0000 (13:43 +0000)
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

index 42d7bf62e4f71b7161cfa0fc465ee2b0302272ed..5411d68a4017393d2f6992bd05d276efd34acce7 100644 (file)
@@ -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;
 }