[Libreoffice-commits] core.git: compilerplugins/clang

Stephan Bergmann sbergman at redhat.com
Tue Jan 9 22:22:23 UTC 2018


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

New commits:
commit 17b9ef3858ea8c5ab01abfe767da0b99d3d7d717
Author: Stephan Bergmann <sbergman at 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 <ci at libreoffice.org>
    Reviewed-by: Stephan Bergmann <sbergman at 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: */


More information about the Libreoffice-commits mailing list