浏览代码

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

Viral B. Shah 4 月之前
父节点
当前提交
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)