[gnome-utils] screenshot: Fix compiler warnings



commit 956820bfc02d55c47a92341045950f93155298ae
Author: Benjamin Otte <otte redhat com>
Date:   Wed Sep 1 13:52:51 2010 +0200

    screenshot: Fix compiler warnings
    
    https://bugzilla.gnome.org/show_bug.cgi?id=628499

 gnome-screenshot/gnome-screenshot.c |    4 +---
 gnome-screenshot/screenshot-xfer.c  |    6 +-----
 2 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/gnome-screenshot/gnome-screenshot.c b/gnome-screenshot/gnome-screenshot.c
index ef22e5c..47449e0 100644
--- a/gnome-screenshot/gnome-screenshot.c
+++ b/gnome-screenshot/gnome-screenshot.c
@@ -654,8 +654,7 @@ save_callback (TransferResult result,
                                        GTK_DIALOG_DESTROY_WITH_PARENT,
                                        GTK_MESSAGE_ERROR,
                                        GTK_BUTTONS_OK,
-                                       _("Error while saving screenshot"),
-                                       NULL);
+                                       _("Error while saving screenshot"));
       /* translators: first %s is the file path, second %s is the VFS error */
       gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (error_dialog),
                                                 _("Impossible to save the screenshot "
@@ -1273,7 +1272,6 @@ int
 main (int argc, char *argv[])
 {
   GOptionContext *context;
-  GOptionGroup *group;
   gboolean window_arg = FALSE;
   gboolean area_arg = FALSE;
   gboolean include_border_arg = FALSE;
diff --git a/gnome-screenshot/screenshot-xfer.c b/gnome-screenshot/screenshot-xfer.c
index 75a0327..5fa1b98 100644
--- a/gnome-screenshot/screenshot-xfer.c
+++ b/gnome-screenshot/screenshot-xfer.c
@@ -57,8 +57,6 @@ typedef struct
   char *basename;
 } ErrorDialogData;
 
-static goffset total_size = 0;
-
 static gboolean
 do_run_overwrite_confirm_dialog (gpointer _data)
 {
@@ -119,8 +117,7 @@ transfer_progress_dialog_new (TransferJob *job)
                                     GTK_DIALOG_DESTROY_WITH_PARENT,
                                     GTK_MESSAGE_OTHER,
                                     GTK_BUTTONS_CANCEL,
-                                    _("Saving file..."),
-                                    NULL);
+                                    _("Saving file..."));
   widget = gtk_progress_bar_new ();
   gtk_box_pack_start (GTK_BOX (GTK_MESSAGE_DIALOG (gdialog)->label->parent),
                       widget, FALSE, 0, 0);
@@ -282,7 +279,6 @@ transfer_file (GIOSchedulerJob *io_job,
 {
   TransferJob *job = user_data;
   GError *error;
-  gboolean result;
   
   job->io_job = io_job;
   job->total_bytes = get_file_size (job->source);



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