i.e. if G_ENABLE_CONSISTENCY_CHECKS is defined. This makes sense,
considering that this warning is about consistency of internal widget
state.
Origin: upstream, 3.22.30, commit:
eb01ba8573bec47e02c8fc4eaf10e2f7cff522dd
Gbp-Pq: Name 0012-widget-Only-print-allocation-warnings-with-enable-de.patch
gtk_widget_queue_draw (widget);
}
+#ifdef G_ENABLE_CONSISTENCY_CHECKS
if (gtk_widget_get_resize_needed (widget))
{
g_warning ("Allocating size to %s %p without calling gtk_widget_get_preferred_width/height(). "
"How does the code know the size to allocate?",
gtk_widget_get_name (widget), widget);
}
+#endif
if (GTK_DEBUG_CHECK (GEOMETRY))
{