From 54db045f450a577a15425e637ebeac950f498b64 Mon Sep 17 00:00:00 2001 From: Jehan Date: Fri, 13 Jan 2023 21:41:59 +0100 Subject: [PATCH] libimp: declaration must be at start of a block. Fixes: > libgimp/gimpresourceselectbutton.c:510:9: error: a label can only be part of a statement and a declaration is not a statement > 510 | GimpResource *specific_value; As well as some coding style bug (space after '*'). --- libgimp/gimpresourceselectbutton.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/libgimp/gimpresourceselectbutton.c b/libgimp/gimpresourceselectbutton.c index 31ce8e1a75..ccd17862ab 100644 --- a/libgimp/gimpresourceselectbutton.c +++ b/libgimp/gimpresourceselectbutton.c @@ -501,16 +501,18 @@ gimp_resource_select_button_set_property (GObject *object, break; case PROP_RESOURCE: - /* Do not use the exported method set_resource. - * That is internal and less safe - * because it is agnostic of NULL values passed, - * and does not unref any existing value. - */ - GimpResource * specific_value; + { + /* Do not use the exported method set_resource. + * That is internal and less safe + * because it is agnostic of NULL values passed, + * and does not unref any existing value. + */ + GimpResource *specific_value; - specific_value = g_value_get_object (gvalue); - g_assert (specific_value != NULL); - priv->resource = specific_value; + specific_value = g_value_get_object (gvalue); + g_assert (specific_value != NULL); + priv->resource = specific_value; + } break; default: