src: fix `-Wextra` warning in `WriteFileSync` · nodejs/node@1f24901 · GitHub
Skip to content

Commit 1f24901

Browse files
committed
src: fix -Wextra warning in WriteFileSync
`req.result` is `ssize_t` while `UV_EIO` is an enumerator, which GCC flags as mixing enumerated and non-enumerated types in a conditional expression. Assisted-by: Devin Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: #66020 Reviewed-By: Xuguang Mei <meixuguang@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent 060ed69 commit 1f24901

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/node_file_utils.cc‎

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)