os/fileio: Fix QB failure

This commit is contained in:
ZyX
2017-03-19 18:24:20 +03:00
parent 88e1a17cde
commit 83b39a4a02

View File

@@ -68,6 +68,10 @@ int file_open(FileDescriptor *const ret_fp, const char *const fname,
FLAG(flags, kFileNoSymlink, O_NOFOLLOW, kNone, true); FLAG(flags, kFileNoSymlink, O_NOFOLLOW, kNone, true);
#endif #endif
#undef FLAG #undef FLAG
// wr is used for kFileReadOnly flag, but on
// QB:neovim-qb-slave-ubuntu-12-04-64bit it still errors out with
// `error: variable wr set but not used [-Werror=unused-but-set-variable]`
(void)wr;
const int fd = os_open(fname, os_open_flags, mode); const int fd = os_open(fname, os_open_flags, mode);