From 95c441ea0cff9aa48a52d345ed4f2cbc7e03b793 Mon Sep 17 00:00:00 2001 From: matusz Date: Sat, 16 May 2009 18:08:57 +0000 Subject: [PATCH] one correct and one bogus warning silenced --- desmume/src/gtk/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/desmume/src/gtk/main.cpp b/desmume/src/gtk/main.cpp index c9c180488..664db69ef 100644 --- a/desmume/src/gtk/main.cpp +++ b/desmume/src/gtk/main.cpp @@ -850,7 +850,7 @@ static inline void gpu_screen_to_rgb(guchar * rgb, int size) /* Drawing callback */ static int gtkFloatExposeEvent (GtkWidget *widget, GdkEventExpose *event, gpointer data) { - GdkPixbuf *origPixbuf, *resizedPixbuf, *drawPixbuf; + GdkPixbuf *origPixbuf, *resizedPixbuf = NULL, *drawPixbuf; guchar rgb[SCREENS_PIXEL_SIZE*SCREEN_BYTES_PER_PIXEL]; float ssize, vratio, hratio; @@ -1218,7 +1218,8 @@ static void SetRotation(GtkAction* action) H = 256; break; default: - g_printerr("Congratulations, you've managed to set unsupported screen rotation angle (%s), resetting angle to 0\n", angle); + g_printerr("Congratulations, you've managed to set unsupported screen rotation angle (%s), resetting angle to 0\n", + nds_screen_rotation_angle); nds_screen_rotation_angle = 0; W = 256; H = 384 + nds_gap_size;