[gnome-games] Fix compile warnings in Vala games
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] Fix compile warnings in Vala games
- Date: Tue, 6 Dec 2011 23:04:04 +0000 (UTC)
commit 004d29e44cca4020389e4abcf841b5cdafdb1afa
Author: Robert Ancell <robert ancell canonical com>
Date: Wed Dec 7 10:03:59 2011 +1100
Fix compile warnings in Vala games
glchess/src/Makefile.am | 3 +--
glchess/src/chess-game.vala | 2 ++
gnomine/src/Makefile.am | 3 +--
gnotravex/src/Makefile.am | 3 ++-
mahjongg/src/Makefile.am | 3 +--
5 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/glchess/src/Makefile.am b/glchess/src/Makefile.am
index ef78ce9..a894ff4 100644
--- a/glchess/src/Makefile.am
+++ b/glchess/src/Makefile.am
@@ -57,8 +57,7 @@ glchess_CFLAGS = \
$(OPENGL_CFLAGS) \
$(RSVG_CFLAGS) \
$(SQLITE_CFLAGS) \
- $(GTKGLEXT_CFLAGS) \
- $(WARN_CFLAGS)
+ $(GTKGLEXT_CFLAGS)
glchess_LDADD = \
$(GMODULE_LIBS) \
diff --git a/glchess/src/chess-game.vala b/glchess/src/chess-game.vala
index 1a169f6..3c5ebce 100644
--- a/glchess/src/chess-game.vala
+++ b/glchess/src/chess-game.vala
@@ -764,6 +764,7 @@ public class ChessState
public ChessResult get_result (out ChessRule rule)
{
+ rule = ChessRule.CHECKMATE;
if (check_state == CheckState.CHECKMATE)
{
if (current_player.color == Color.WHITE)
@@ -958,6 +959,7 @@ public class ChessState
private bool decode_piece_type (unichar c, out PieceType type)
{
+ type = PieceType.PAWN;
switch (c)
{
case 'P':
diff --git a/gnomine/src/Makefile.am b/gnomine/src/Makefile.am
index 548a7ed..ec7abd6 100644
--- a/gnomine/src/Makefile.am
+++ b/gnomine/src/Makefile.am
@@ -10,8 +10,7 @@ gnomine_CFLAGS = \
-I$(top_srcdir)/libgames-support \
-DVERSION=\"$(VERSION)\" \
-DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\" \
- $(GTK_CFLAGS) \
- $(AM_CFLAGS)
+ $(GTK_CFLAGS)
gnomine_VALAFLAGS = \
--pkg posix \
diff --git a/gnotravex/src/Makefile.am b/gnotravex/src/Makefile.am
index f584e03..d18aaf8 100644
--- a/gnotravex/src/Makefile.am
+++ b/gnotravex/src/Makefile.am
@@ -22,7 +22,8 @@ gnotravex_CFLAGS = \
-DVERSION=\"$(VERSION)\" \
-DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\" \
$(GTK_CFLAGS) \
- $(AM_CFLAGS)
+ $(AM_CFLAGS) \
+ -Wno-unused
gnotravex_LDADD = \
$(top_builddir)/libgames-support/libgames-support.la \
diff --git a/mahjongg/src/Makefile.am b/mahjongg/src/Makefile.am
index 87ee864..1df2f0a 100644
--- a/mahjongg/src/Makefile.am
+++ b/mahjongg/src/Makefile.am
@@ -18,8 +18,7 @@ mahjongg_CFLAGS = \
-I$(top_srcdir)/libgames-support \
-DVERSION=\"$(VERSION)\" \
-DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\" \
- $(GTK_CFLAGS) \
- $(AM_CFLAGS)
+ $(GTK_CFLAGS)
if ENABLE_SETGID
mahjongg_VALAFLAGS += -D ENABLE_SETGID
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]