gui/event-widget: Mark a variable as unused
The actual parsed guri is unused here; the code just does the parsing as a way to tell whether the event's location refers to a URI/service or not (e.g. a physical location or address). Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/581>
This commit is contained in:
committed by
Marge Bot
parent
172f07c44e
commit
b03eabb7b7
@@ -364,7 +364,7 @@ gcal_event_widget_set_event_tooltip (GcalEventWidget *self,
|
|||||||
if (location && location[0] != '\0')
|
if (location && location[0] != '\0')
|
||||||
{
|
{
|
||||||
g_autofree gchar *escaped_location = NULL;
|
g_autofree gchar *escaped_location = NULL;
|
||||||
g_autoptr (GUri) guri = NULL;
|
g_autoptr (GUri) G_GNUC_UNUSED guri = NULL; /* we just check for a parse error; don't care about the URI */
|
||||||
g_autoptr (GString) string = NULL;
|
g_autoptr (GString) string = NULL;
|
||||||
g_autoptr (GError) error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user