summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-02-08 07:56:15 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-02-08 09:47:42 +0100
commitaea216e2527f37970654a7160eab57d097cbd0f5 (patch)
tree7382f451360fa1a5a73a65e2565ab50a34e22bd8
parentb01e0483ee14826057c42dfa58c3d6200a474791 (diff)
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 <sbergman@redhat.com>
-rw-r--r--desktop/source/lib/init.cxx4
1 files changed, 2 insertions, 2 deletions
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