compilerplugins/clang/unusedfields.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 17b9ef3858ea8c5ab01abfe767da0b99d3d7d717
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Tue Jan 9 18:10:57 2018 +0100

    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 <c...@libreoffice.org>
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

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: */
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to