summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-08-07 08:08:43 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-08-07 08:08:43 +0200
commitbf1bdbeb5cc91358e655bf2df28bbd2fba5347e7 (patch)
treeabdd82a369062519a0e705005d5483b295f84d0d /sal
parent7400dac23a2df7de133398dea1f5f069efd17ffd (diff)
loplugin:oncevar
Change-Id: Id88149b2ebbf869474192cc22b862093db21aeb6
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/file.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index 35d620813cfa..f2b594f8a3e6 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -798,9 +798,10 @@ static int osl_file_adjustLockFlags(const char *path, int flags)
flags &= ~(O_EXLOCK | O_SHLOCK | O_NONBLOCK);
}
}
-#endif /* MACOSX */
-
+#else
(void) path;
+#endif
+
return flags;
}