[dia] [warningectomy] data argument not used by format string
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [warningectomy] data argument not used by format string
- Date: Wed, 1 Oct 2014 22:35:13 +0000 (UTC)
commit 08c1328170db355a28c458e1a8fe21087878d749
Author: Hans Breuer <hans breuer org>
Date: Wed Oct 1 23:57:31 2014 +0200
[warningectomy] data argument not used by format string
load_save.c:1001:68: warning: data argument not used by format string [-Wformat-extra-args]
dia_context_add_message (ctx, _("Error saving connections"), layer->name);
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
pixbuf.c:93:10: warning: data argument not used by format string [-Wformat-extra-args]
error->message);
^
app/load_save.c | 2 +-
plug-ins/pixbuf/pixbuf.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/load_save.c b/app/load_save.c
index 6c8ec0f..7508ecb 100644
--- a/app/load_save.c
+++ b/app/load_save.c
@@ -998,7 +998,7 @@ diagram_data_write_doc(DiagramData *data, const char *filename, DiaContext *ctx)
while (layer_node && xmlStrcmp (layer_node->name, (xmlChar *)"layer") != 0)
layer_node = layer_node->next;
if (!layer_node) {
- dia_context_add_message (ctx, _("Error saving connections"), layer->name);
+ dia_context_add_message (ctx, _("Error saving connections to layer '%s'"), layer->name);
break;
}
res = write_connections(layer->objects, layer_node, objects_hash);
diff --git a/plug-ins/pixbuf/pixbuf.c b/plug-ins/pixbuf/pixbuf.c
index b8bd536..9eb26ed 100644
--- a/plug-ins/pixbuf/pixbuf.c
+++ b/plug-ins/pixbuf/pixbuf.c
@@ -88,7 +88,7 @@ export_data(DiagramData *data, DiaContext *ctx,
if (error)
{
- dia_context_add_message(ctx, _("Could not save file:\n%s"),
+ dia_context_add_message(ctx, _("Could not save file:\n%s\n%s"),
dia_context_get_filename(ctx),
error->message);
g_error_free (error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]