[gtk/matthiasc/for-master] ifdef debug-only functions



commit 14dc3d0186c7e9268c15902f3bfb47bde5c08f07
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Oct 1 17:09:12 2021 -0400

    ifdef debug-only functions
    
    Otherwise, the compiler will complain.

 gdk/wayland/gdkglcontext-wayland.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gdk/wayland/gdkglcontext-wayland.c b/gdk/wayland/gdkglcontext-wayland.c
index 93db8078f8..9c3309aab9 100644
--- a/gdk/wayland/gdkglcontext-wayland.c
+++ b/gdk/wayland/gdkglcontext-wayland.c
@@ -465,6 +465,7 @@ get_eglconfig (EGLDisplay dpy)
 
 #undef MAX_EGL_ATTRS
 
+#ifdef G_ENABLE_DEBUG
 static int
 strvcmp (gconstpointer p1,
          gconstpointer p2)
@@ -518,6 +519,7 @@ describe_egl_config (EGLDisplay dpy,
 
   return g_strdup_printf ("R%dG%dB%dA%d%s", red, green, blue, alpha, type == 
EGL_COLOR_COMPONENT_TYPE_FIXED_EXT ? "" : " float");
 }
+#endif
 
 GdkGLContext *
 gdk_wayland_display_init_gl (GdkDisplay  *display,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]