From 83b39a4a027ec2b314e60b53c709611c770cc921 Mon Sep 17 00:00:00 2001 From: ZyX Date: Sun, 19 Mar 2017 18:24:20 +0300 Subject: os/fileio: Fix QB failure --- src/nvim/os/fileio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nvim/os/fileio.c b/src/nvim/os/fileio.c index 70ed49c3aa..7668a867a0 100644 --- a/src/nvim/os/fileio.c +++ b/src/nvim/os/fileio.c @@ -68,6 +68,10 @@ int file_open(FileDescriptor *const ret_fp, const char *const fname, FLAG(flags, kFileNoSymlink, O_NOFOLLOW, kNone, true); #endif #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); -- cgit