[gtk/wip/chergert/glproto] next: mark various inline functions as unused



commit 196cffec75274c44e63679fc1642622c27207283
Author: Christian Hergert <chergert redhat com>
Date:   Tue Feb 23 11:31:25 2021 -0800

    next: mark various inline functions as unused
    
    Some functions will only be used when debugging developer builds, so we
    can notify them as unused so Clang and others do not complain to us.

 gsk/next/gskglcommandqueue.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gsk/next/gskglcommandqueue.c b/gsk/next/gskglcommandqueue.c
index f5677a76ac..622502af03 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -40,7 +40,7 @@
 
 G_DEFINE_TYPE (GskGLCommandQueue, gsk_gl_command_queue, G_TYPE_OBJECT)
 
-static inline void
+G_GNUC_UNUSED static inline void
 print_uniform (GskGLUniformFormat format,
                guint              array_count,
                gconstpointer      valueptr)
@@ -139,7 +139,7 @@ print_uniform (GskGLUniformFormat format,
     }
 }
 
-static inline void
+G_GNUC_UNUSED static inline void
 gsk_gl_command_queue_print_batch (GskGLCommandQueue       *self,
                                   const GskGLCommandBatch *batch)
 {
@@ -190,7 +190,7 @@ gsk_gl_command_queue_print_batch (GskGLCommandQueue       *self,
   g_printerr ("}\n");
 }
 
-static inline void
+G_GNUC_UNUSED static inline void
 gsk_gl_command_queue_capture_png (GskGLCommandQueue *self,
                                   const char        *filename,
                                   guint              width,


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