[gnome-games] Fix a few compiler warnings



commit c6fbcde58176edc49eb9e9eba8011651452c5778
Author: Christian Persch <chpe gnome org>
Date:   Thu Jun 25 19:49:48 2009 +0200

    Fix a few compiler warnings

 aisleriot/game.c |    3 +++
 aisleriot/sol.c  |    6 +++---
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/aisleriot/game.c b/aisleriot/game.c
index 7245c25..d3ecd28 100644
--- a/aisleriot/game.c
+++ b/aisleriot/game.c
@@ -1218,6 +1218,9 @@ aisleriot_game_get_property (GObject *object,
     case PROP_SCORE:
       g_value_set_uint (value, game->score);
       break;
+    default:
+      G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+      break;
   }
 }
 
diff --git a/aisleriot/sol.c b/aisleriot/sol.c
index f278d87..47846b1 100644
--- a/aisleriot/sol.c
+++ b/aisleriot/sol.c
@@ -200,13 +200,13 @@ save_state_cb (EggSMClient *client,
   argv[argc++] = g_get_prgname ();
 
   if (data->freecell) {
-    argv[argc++] = "--freecell";
+    argv[argc++] = (char *) "--freecell";
   } else {
-    argv[argc++] = "--variation";
+    argv[argc++] = (char *) "--variation";
     argv[argc++] = (char *) game_name;
   }
 
-  argv[argc++] = "--seed";
+  argv[argc++] = (char *) "--seed";
   argv[argc++] = seed;
 
   /* FIXMEchpe: save game state too? */



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