summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-09 18:10:57 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-09 23:21:47 +0100
commit17b9ef3858ea8c5ab01abfe767da0b99d3d7d717 (patch)
treedd19015a00c6dc79eb834436d826af1a210ba8f3 /compilerplugins
parentb3ef638cb25c2d09112f58b182fdb0e458e3dfa8 (diff)
Don't build off-by-default loplugin:unusedfields on Windows for now
...due to missing sys/file.h Change-Id: I7cfd64c5355d9fdbb85320f876c277a408be9352 Reviewed-on: https://gerrit.libreoffice.org/47675 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/unusedfields.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/compilerplugins/clang/unusedfields.cxx b/compilerplugins/clang/unusedfields.cxx
index 4454a0d28b04..17ec24bc5c8e 100644
--- a/compilerplugins/clang/unusedfields.cxx
+++ b/compilerplugins/clang/unusedfields.cxx
@@ -7,6 +7,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#if !defined _WIN32 //TODO, #include <sys/file.h>
+
#include <cassert>
#include <string>
#include <iostream>
@@ -989,4 +991,6 @@ loplugin::Plugin::Registration< UnusedFields > X("unusedfields", false);
}
+#endif
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */