[glabels] Cleanup some '-Wall' warnings.
- From: Jim Evins <jimevins src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glabels] Cleanup some '-Wall' warnings.
- Date: Fri, 10 Dec 2010 04:43:11 +0000 (UTC)
commit 5bd9bc4fc3b3ab019b8e290d7ae48bd3a63cd320
Author: Jim Evins <evins snaught com>
Date: Thu Dec 9 23:39:48 2010 -0500
Cleanup some '-Wall' warnings.
libglabels/db.c | 3 ++-
src/color-swatch.c | 2 --
src/font-sample.c | 2 --
src/label-barcode.c | 4 ----
4 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/libglabels/db.c b/libglabels/db.c
index 6e6d047..daf914c 100644
--- a/libglabels/db.c
+++ b/libglabels/db.c
@@ -24,6 +24,7 @@
#include <glib/gi18n.h>
#include <glib.h>
+#include <glib/gstdio.h>
#include <glib-object.h>
#include <string.h>
#include <sys/stat.h>
@@ -1567,7 +1568,7 @@ lgl_db_delete_template_by_name (const gchar *name)
if (!g_file_test (abs_filename, G_FILE_TEST_EXISTS))
{
- g_message ("File \"%s\" does not exist. Cannot delete it.");
+ g_message ("File \"%s\" does not exist. Cannot delete template.", abs_filename);
return LGL_DB_DELETE_DOES_NOT_EXIST;
}
diff --git a/src/color-swatch.c b/src/color-swatch.c
index b36fdc2..6856e21 100644
--- a/src/color-swatch.c
+++ b/src/color-swatch.c
@@ -192,8 +192,6 @@ static gboolean
draw_cb (GtkWidget *widget,
cairo_t *cr)
{
- GtkAllocation allocation;
-
draw_swatch (GL_COLOR_SWATCH (widget), cr);
return FALSE;
diff --git a/src/font-sample.c b/src/font-sample.c
index fbda823..cbdc6d6 100644
--- a/src/font-sample.c
+++ b/src/font-sample.c
@@ -183,8 +183,6 @@ static gboolean
draw_cb (GtkWidget *widget,
cairo_t *cr)
{
- GtkAllocation allocation;
-
draw_sample (GL_FONT_SAMPLE (widget), cr);
return FALSE;
diff --git a/src/label-barcode.c b/src/label-barcode.c
index dfef496..5a709f6 100644
--- a/src/label-barcode.c
+++ b/src/label-barcode.c
@@ -545,7 +545,6 @@ draw_object (glLabelObject *object,
else
{
lgl_barcode_render_to_cairo (lbc->priv->display_gbc, cr);
- lgl_barcode_free (gbc);
}
}
@@ -569,10 +568,7 @@ object_at (glLabelObject *object,
{
glLabelBarcode *lbc = (glLabelBarcode *)object;
gdouble w, h;
- lglBarcode *gbc;
- glLabelBarcodeStyle *style;
glTextNode *text_node;
- gchar *text;
gdouble scale_x, scale_y;
gl_label_object_get_size (object, &w, &h);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]