Skip to content

Commit c9c6fd6

Browse files
authored
Update riscv64 fenv.c initialization to fix warnings (#330)
1 parent 9fbeafc commit c9c6fd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riscv64/fenv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* Hopefully the system ID byte is immutable, so it's valid to use
3838
* this as a default environment.
3939
*/
40-
const fenv_t __fe_dfl_env = 0;
40+
const fenv_t __fe_dfl_env = {0};
4141

4242
#ifdef __riscv_float_abi_soft
4343
#define __set_env(env, flags, mask, rnd) env = ((flags) | (rnd) << 5)

0 commit comments

Comments
 (0)