diff --git a/env/fs_posix.cc b/env/fs_posix.cc index 4601472a0..f64a67753 100644 --- a/env/fs_posix.cc +++ b/env/fs_posix.cc @@ -122,6 +122,8 @@ int cloexec_flags(int flags, const EnvOptions* options) { if (options == nullptr || options->set_fd_cloexec) { flags |= O_CLOEXEC; } +#else + (void)options; #endif return flags; }