[gnome-documents] all: fix GCC warnings



commit 935aab9ead40bf4e89a05e6f13629ce31c5867a1
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Aug 28 21:52:37 2011 -0400

    all: fix GCC warnings

 src/lib/gd-framed-pixbuf-renderer.c |    1 -
 src/lib/gd-pdf-loader.c             |    5 +----
 src/lib/gd-two-lines-renderer.c     |    5 +----
 src/miner/gd-gdata-miner.c          |    1 -
 src/miner/gd-gdata-miner.h          |    2 ++
 5 files changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/src/lib/gd-framed-pixbuf-renderer.c b/src/lib/gd-framed-pixbuf-renderer.c
index 1caa964..a08d6f0 100644
--- a/src/lib/gd-framed-pixbuf-renderer.c
+++ b/src/lib/gd-framed-pixbuf-renderer.c
@@ -51,7 +51,6 @@ gd_framed_pixbuf_renderer_render (GtkCellRenderer      *cell,
                                   const GdkRectangle   *cell_area,
                                   GtkCellRendererState  flags)
 {
-  GdFramedPixbufRenderer *self = GD_FRAMED_PIXBUF_RENDERER (cell);
   GtkStyleContext *context;
 
   context = gtk_widget_get_style_context (widget);
diff --git a/src/lib/gd-pdf-loader.c b/src/lib/gd-pdf-loader.c
index 863d623..1998519 100644
--- a/src/lib/gd-pdf-loader.c
+++ b/src/lib/gd-pdf-loader.c
@@ -28,6 +28,7 @@
 #include <gdata/gdata.h>
 #include <evince-document.h>
 #include <evince-view.h>
+#include <glib/gstdio.h>
 
 /* TODO:
  * - investigate the GDataDocumentsType bug
@@ -289,8 +290,6 @@ os_splice_ready_cb (GObject *source,
                     gpointer user_data)
 {
   GError *error = NULL;
-  GFile *file;
-  gchar *uri;
   PdfLoadJob *job = user_data;
 
   g_output_stream_splice_finish (G_OUTPUT_STREAM (source), res, &error);
@@ -437,7 +436,6 @@ pdf_load_job_from_google_documents_with_object (PdfLoadJob *job,
                                                 GoaObject *object)
 {
   EGDataGoaAuthorizer *authorizer;
-  GDataDocumentsService *service;
 
   authorizer = e_gdata_goa_authorizer_new (object);
   job->gdata_service = GDATA_SERVICE (gdata_documents_service_new (GDATA_AUTHORIZER (authorizer)));
@@ -868,7 +866,6 @@ gd_pdf_loader_load_uri_finish (GdPdfLoader *self,
                                GAsyncResult *res,
                                GError **error)
 {
-  gpointer r;
   EvDocument *retval;
 
   if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (res), error))
diff --git a/src/lib/gd-two-lines-renderer.c b/src/lib/gd-two-lines-renderer.c
index 9f880d3..58fafc2 100644
--- a/src/lib/gd-two-lines-renderer.c
+++ b/src/lib/gd-two-lines-renderer.c
@@ -73,9 +73,6 @@ gd_two_lines_renderer_prepare_layouts (GdTwoLinesRenderer *self,
                                        GtkWidget *widget)
 {
   gchar *text = NULL;
-  gint wrap_width;
-  PangoWrapMode wrap_mode;
-  PangoAlignment alignment;
 
   g_object_get (self,
                 "text", &text,
@@ -157,7 +154,7 @@ gd_two_lines_renderer_render (GtkCellRenderer      *cell,
   gint line_one_height;
   GtkStateFlags state;
   GdkRectangle render_area = *cell_area;
-  guint xpad, ypad;
+  gint xpad, ypad;
 
   context = gtk_widget_get_style_context (widget);
   gd_two_lines_renderer_prepare_layouts (self, widget);
diff --git a/src/miner/gd-gdata-miner.c b/src/miner/gd-gdata-miner.c
index 2a6f012..caeb47e 100644
--- a/src/miner/gd-gdata-miner.c
+++ b/src/miner/gd-gdata-miner.c
@@ -228,7 +228,6 @@ _tracker_sparql_connection_ensure_resource (TrackerSparqlConnection *connection,
   GVariant *insert_res;
   GVariantIter *iter;
   gchar *key = NULL, *val = NULL;
-  GHashTable *nodes;
 
   /* build the inner query with all the classes */
   va_start (args, class);
diff --git a/src/miner/gd-gdata-miner.h b/src/miner/gd-gdata-miner.h
index aabb014..3e5b6b9 100644
--- a/src/miner/gd-gdata-miner.h
+++ b/src/miner/gd-gdata-miner.h
@@ -63,6 +63,8 @@ struct _GdGDataMinerClass {
   GObjectClass parent_class;
 };
 
+GType gd_gdata_miner_get_type(void);
+
 GdGDataMiner * gd_gdata_miner_new (void);
 
 void           gd_gdata_miner_refresh_db_async (GdGDataMiner *self,



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