From 18d2c7e82dbbe708925588d101e7c59a5b9327a1 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 7 Jul 2022 11:37:21 +0300 Subject: Avoid compiler warning Change-Id: I322b2c0ea14bbf8ed2fe1a306c0ed28f5e5ae258 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136875 Tested-by: Jenkins CollaboraOffice Reviewed-by: Tor Lillqvist (cherry picked from commit ece304df9ad2aa0f974927320a1324c06b89f337) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146076 Tested-by: Jenkins Reviewed-by: Andras Timar --- desktop/source/deployment/misc/dp_misc.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'desktop') diff --git a/desktop/source/deployment/misc/dp_misc.cxx b/desktop/source/deployment/misc/dp_misc.cxx index bbe3a085fc68..ea5c737c2d7b 100644 --- a/desktop/source/deployment/misc/dp_misc.cxx +++ b/desktop/source/deployment/misc/dp_misc.cxx @@ -515,7 +515,9 @@ void syncRepositories( Reference(), xCmdEnv); } } -#if !HAVE_FEATURE_MACOSX_SANDBOX +#if HAVE_FEATURE_MACOSX_SANDBOX + (void) bModified; +#else if (bModified && !comphelper::LibreOfficeKit::isActive()) { Reference restarter(task::OfficeRestartManager::get(comphelper::getProcessComponentContext())); -- cgit v1.2.3