diff options
author | Rene Engelhard <rene@rene-engelhard.de> | 2021-11-19 20:28:10 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-11-19 21:47:15 +0100 |
commit | 2ed0c2f7ce1ac80dd0315043eb656fff41f24bfc (patch) | |
tree | de41b6fb48fc24963171892556cc41616b5aac44 /vcl/unx | |
parent | 13ff493f1d7bf9ba4681ff62f7f7020925306a2d (diff) |
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 <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk3/gtkframe.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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,11 +4713,13 @@ 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; aEvent.Source = static_cast<css::datatransfer::dnd::XDropTarget*>(this); |