[COMMITTED PATCH 1/1] RISC-V: Fix riscv_set_tso declaration

Tsukasa OI research_trasio@irq.a4lg.com
Wed Sep 21 13:53:27 GMT 2022


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



More information about the Binutils mailing list