-
Notifications
You must be signed in to change notification settings - Fork 1
riscv_ztso_minor_fix_2
Tsukasa OI edited this page Sep 21, 2022
·
1 revision
- Status: Obvious; Merged for Binutils 2.40
- Branch:
riscv-ztso-minor-fix-2
- Tracking PR: None
- Mailing List:
- COMMITTED PATCH (2022-09-21)
Obvious change related to -Werror=strict-prototypes
is committed.
Change:
- Before:
static void riscv_set_tso () { ... }
- After:
static void riscv_set_tso (void) { ... }
The former ()
is used on function prototypes of old C standards, possibly meaning a function with indeterminate arguments (deprecated though).
To avoid ambiguity, we need to use (void)
for function declaration with no arguments.