vcl/unx/gtk3/gtkframe.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 2ed0c2f7ce1ac80dd0315043eb656fff41f24bfc
Author:     Rene Engelhard <[email protected]>
AuthorDate: Fri Nov 19 20:28:10 2021 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Nov 19 21:47:15 2021 +0100

    fix gtk4 build
    
    res is only defined if NDEBUG is *not* defined. So it doesn't exist in a
    "standard" build using -DNDEBUG and shouldn't be used.
    
    Change-Id: Iebae9898d50030f994a7289e2bc3fe3052172dee
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125582
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/vcl/unx/gtk3/gtkframe.cxx b/vcl/unx/gtk3/gtkframe.cxx
index a42a745aa988..66fa98d08cb5 100644
--- a/vcl/unx/gtk3/gtkframe.cxx
+++ b/vcl/unx/gtk3/gtkframe.cxx
@@ -4713,10 +4713,12 @@ gboolean 
GtkInstDropTarget::signalDragDrop(GtkDropTargetAsync* context, GdkDrop*
     bool res =
 #endif
     g_idle_remove_by_data(this);
+#ifndef NDEBUG
 #if !GTK_CHECK_VERSION(4, 0, 0)
     assert(res);
 #else
     (void)res;
+#endif
 #endif
 
     css::datatransfer::dnd::DropTargetDropEvent aEvent;

Reply via email to