diff options
author | Hans Breuer <hans@breuer.org> | 2014-10-01 23:38:35 +0200 |
---|---|---|
committer | Hans Breuer <hans@breuer.org> | 2014-10-01 23:38:35 +0200 |
commit | 53e0ac25fd0034d5cc625b81e0f00086cc9368a4 (patch) | |
tree | 221c5c9dc8825073688e52c52ff8c556ccee8220 /objects | |
parent | 6ce4151e9d26dc4652cc053557bbe58a410be32d (diff) | |
download | dia-53e0ac25fd0034d5cc625b81e0f00086cc9368a4.tar.xz |
[warningectomy] format string is not a string literal
Sprinkle G_GNUC_PRINTF() to avoid the following warnings and get some new ones.
message.c:180:38: warning: format string is not a string literal [-Wformat-nonliteral]
len = g_printf_string_upper_bound (fmt, args);
^~~
message.c:190:18: warning: format string is not a string literal [-Wformat-nonliteral]
vsprintf (buf, fmt, args2);
^~~
dialib.c:46:38: warning: format string is not a string literal [-Wformat-nonliteral]
len = g_printf_string_upper_bound (fmt, args);
^~~
dialib.c:57:18: warning: format string is not a string literal [-Wformat-nonliteral]
vsprintf (buf, fmt, args2);
^~~
diacontext.c:162:27: warning: format string is not a string literal [-Wformat-nonliteral]
msg = g_strdup_vprintf (format, args);
^~~~~~
diacontext.c:181:27: warning: format string is not a string literal [-Wformat-nonliteral]
msg = g_strdup_vprintf (format, args);
^~~~~~
Diffstat (limited to 'objects')
-rw-r--r-- | objects/custom/shape_typeinfo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/objects/custom/shape_typeinfo.c b/objects/custom/shape_typeinfo.c index 6f3d7cd4..bbcd6974 100644 --- a/objects/custom/shape_typeinfo.c +++ b/objects/custom/shape_typeinfo.c @@ -146,6 +146,8 @@ endElementNs (void *ctx, context->state = READ_ON; } +static void _error (void *ctx, const char * msg, ...) G_GNUC_PRINTF(2, 3); + static void _error (void *ctx, const char * msg, @@ -163,6 +165,8 @@ _error (void *ctx, va_end(args); } +static void _warning (void *ctx, const char * msg, ...) G_GNUC_PRINTF(2, 3); + static void _warning (void *ctx, const char * msg, |