diff options
author | Philip Withnall <withnall@endlessm.com> | 2019-05-01 12:53:56 +0100 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2019-09-05 13:51:27 +0100 |
commit | 18a232be89c05d8eadd99c637418a05b016f777d (patch) | |
tree | a84a0afd7349f4147ff1e72378cb1db67e604c04 /glib/gmarkup.c | |
parent | 7a33239babbf2de130968f997ab9965966eb7d75 (diff) | |
download | glib-18a232be89c05d8eadd99c637418a05b016f777d.tar.gz |
glib: Various minor scan-build fixes
These squash various warnings from `scan-build`. None of them are
legitimate bugs, but some of them do improve code readability a bit.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Helps: #1767
Diffstat (limited to 'glib/gmarkup.c')
-rw-r--r-- | glib/gmarkup.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/glib/gmarkup.c b/glib/gmarkup.c index 5b70cef8d..945f40695 100644 --- a/glib/gmarkup.c +++ b/glib/gmarkup.c @@ -2917,7 +2917,6 @@ g_markup_collect_attributes (const gchar *element_name, failure: /* replay the above to free allocations */ type = first_type; - attr = first_attr; va_start (ap, first_attr); while (type != G_MARKUP_COLLECT_INVALID) @@ -2952,7 +2951,10 @@ failure: type = va_arg (ap, GMarkupCollectType); if (type != G_MARKUP_COLLECT_INVALID) - attr = va_arg (ap, const char *); + { + attr = va_arg (ap, const char *); + (void) attr; + } } va_end (ap); |