Skip to content

riscv_ztso_minor_fix_2

Tsukasa OI edited this page Sep 21, 2022 · 1 revision

Fix: riscv_set_tso declaration

Issue Solved

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.

Clone this wiki locally