vcl/source/app/salplug.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit eca098746604b6a6032cce2aa20394fca782123c
Author:     Andras Timar <andras.ti...@collabora.com>
AuthorDate: Tue Feb 14 11:51:50 2023 +0100
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Tue Feb 14 20:00:22 2023 +0000

    fix error: macro UNIX_DESKTOP_DETECT is not used [-Werror=unused-macros]
    
    ... when HAVE_FEATURE_UI is 0
    
    Change-Id: I353189a9cfd9eeb3d96008c440ff403d3634f14c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146980
    Tested-by: Jenkins
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>

diff --git a/vcl/source/app/salplug.cxx b/vcl/source/app/salplug.cxx
index 378187dbfedc..e51375b94ae5 100644
--- a/vcl/source/app/salplug.cxx
+++ b/vcl/source/app/salplug.cxx
@@ -40,12 +40,14 @@
 #include <svdata.hxx>
 #include <vcl/svapp.hxx>
 
+#if HAVE_FEATURE_UI
 #if USING_X11
 #define UNIX_DESKTOP_DETECT 1
 #include <unx/desktops.hxx>
 #else
 #define UNIX_DESKTOP_DETECT 0
 #endif
+#endif
 
 #if defined(DISABLE_DYNLOADING) || !HAVE_FEATURE_UI
 #define STATIC_SAL_INSTANCE 1

Reply via email to