[virt-tools-list] [PATCH 2 of 5] viewer: silence a few warnings of unused variables
Marc-André Lureau
marcandre.lureau at redhat.com
Tue Nov 30 15:08:30 UTC 2010
# HG changeset patch
# User Marc-André Lureau <marcandre.lureau at redhat.com>
# Date 1290186468 -3600
# Node ID c0b5667440d038394f1ad67d8d40580ec69a0051
# Parent fa619cc52b0cdac477e60dfbdae8921ad18ef236
viewer: silence a few warnings of unused variables
diff -r fa619cc52b0c -r c0b5667440d0 src/viewer.c
--- a/src/viewer.c Fri Nov 19 18:07:12 2010 +0100
+++ b/src/viewer.c Fri Nov 19 18:07:48 2010 +0100
@@ -356,7 +356,7 @@
height);
}
-static void viewer_menu_view_zoom_out(GtkWidget *menu, VirtViewer *viewer)
+static void viewer_menu_view_zoom_out(G_GNUC_UNUSED GtkWidget *menu, VirtViewer *viewer)
{
viewer->zoomlevel -= 10;
if (viewer->zoomlevel < 10)
@@ -365,7 +365,7 @@
viewer_resize_main_window(viewer);
}
-static void viewer_menu_view_zoom_in(GtkWidget *menu, VirtViewer *viewer)
+static void viewer_menu_view_zoom_in(G_GNUC_UNUSED GtkWidget *menu, VirtViewer *viewer)
{
viewer->zoomlevel += 10;
if (viewer->zoomlevel > 200)
@@ -374,7 +374,7 @@
viewer_resize_main_window(viewer);
}
-static void viewer_menu_view_zoom_reset(GtkWidget *menu, VirtViewer *viewer)
+static void viewer_menu_view_zoom_reset(G_GNUC_UNUSED GtkWidget *menu, VirtViewer *viewer)
{
viewer->zoomlevel = 100;
More information about the virt-tools-list
mailing list