[glib] gdbus-codegen: Make sure we pass -Werror



commit d97cbc6731deab137770bc0fe9c69b06f689f5b4
Author: Alexander Larsson <alexl redhat com>
Date:   Wed May 4 13:54:34 2011 +0200

    gdbus-codegen: Make sure we pass -Werror
    
    _g_value_equal might not always be used, so mark it G_GNUC_UNUSED
    to make sure we're -Werror clean.

 gio/gdbus-codegen/codegen.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gdbus-codegen/codegen.py b/gio/gdbus-codegen/codegen.py
index b088511..6373d0c 100644
--- a/gio/gdbus-codegen/codegen.py
+++ b/gio/gdbus-codegen/codegen.py
@@ -156,7 +156,7 @@ class CodeGenerator:
                      '\n')
 
         # simplified - only supports the types we use
-        self.c.write('static gboolean\n'
+        self.c.write('G_GNUC_UNUSED static gboolean\n'
                      '_g_value_equal (const GValue *a, const GValue *b)\n'
                      '{\n'
                      '  gboolean ret = FALSE;\n'



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