ソースを参照

Update riscv64 fenv.c initialization to fix warnings (#330)

Viral B. Shah 5 ヶ月 前
コミット
c9c6fd6ead
1 ファイル変更1 行追加1 行削除
  1. 1 1
      riscv64/fenv.c

+ 1 - 1
riscv64/fenv.c

@@ -37,7 +37,7 @@
  * Hopefully the system ID byte is immutable, so it's valid to use
  * this as a default environment.
  */
-const fenv_t __fe_dfl_env = 0;
+const fenv_t __fe_dfl_env = {0};
 
 #ifdef __riscv_float_abi_soft
 #define __set_env(env, flags, mask, rnd) env = ((flags) | (rnd) << 5)