desktop/source/lib/init.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit aea216e2527f37970654a7160eab57d097cbd0f5
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Tue Feb 8 07:56:15 2022 +0100
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Tue Feb 8 09:47:42 2022 +0100

    Avoid -Werror,-Wunused-variable also with clang-cl
    
    Change-Id: Iebf3a95bb104eeff641fbeaa14c620f84b1047f7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129654
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 45aa9ad4cbfb..0dd274b58f59 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -6352,7 +6352,7 @@ static void preloadData()
     }
 
     std::cerr << "Preload config\n";
-#ifdef __GNUC__
+#if defined __GNUC__ || defined __clang__
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wunused-variable"
 #endif
@@ -6377,7 +6377,7 @@ static void preloadData()
     static MiscSettings aMiscSettings;
     static HelpSettings aHelpSettings;
     static AllSettings aAllSettings;
-#ifdef __GNUC__
+#if defined __GNUC__ || defined __clang__
 #pragma GCC diagnostic pop
 #endif
 

Reply via email to