aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-03-19 18:24:20 +0300
committerZyX <kp-pav@yandex.ru>2017-03-19 18:24:20 +0300
commit83b39a4a027ec2b314e60b53c709611c770cc921 (patch)
tree9b772ca4c3d7d9f78629888dc6309efc6d3e3a4b
parent88e1a17cde03bf35815136637ac3adf299f10cb2 (diff)
downloadrneovim-83b39a4a027ec2b314e60b53c709611c770cc921.tar.gz
rneovim-83b39a4a027ec2b314e60b53c709611c770cc921.tar.bz2
rneovim-83b39a4a027ec2b314e60b53c709611c770cc921.zip
os/fileio: Fix QB failure
-rw-r--r--src/nvim/os/fileio.c4
1 files changed, 4 insertions, 0 deletions
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);