[gom] gom: Fix a format warning



commit d18d14390d88908a95681947dbafa17496acca22
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Sep 26 18:35:06 2014 +0200

    gom: Fix a format warning
    
    By casting GTypes to ints to print them.

 gom/gom-command.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gom/gom-command.c b/gom/gom-command.c
index 2e13272..511b9a4 100644
--- a/gom/gom-command.c
+++ b/gom/gom-command.c
@@ -59,7 +59,7 @@ gom_command_bind_param (GomCommand   *command,
 
    priv = command->priv;
 
-   g_debug("Binding gtype %s (%d).", g_type_name(G_VALUE_TYPE(value)), G_VALUE_TYPE(value));
+   g_debug("Binding gtype %s (%d).", g_type_name(G_VALUE_TYPE(value)), (int) G_VALUE_TYPE(value));
 
    switch (G_VALUE_TYPE(value)) {
    case G_TYPE_BOOLEAN:
@@ -151,7 +151,7 @@ gom_command_bind_param (GomCommand   *command,
          }
          break;
       }
-      g_warning("Failed to bind gtype %s (%d).", g_type_name(G_VALUE_TYPE(value)), G_VALUE_TYPE(value));
+      g_warning("Failed to bind gtype %s (%d).", g_type_name(G_VALUE_TYPE(value)), (int) 
G_VALUE_TYPE(value));
       g_assert_not_reached();
       break;
    }


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