From: Matthias Clasen Date: Wed, 26 Apr 2023 21:54:43 +0000 (+0200) Subject: Fix the build with clang X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~365^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=951e3b3d6b7428ba9f69a2b5de1dfbe95969fd9e;p=gtk4.git Fix the build with clang This broke our macos ci. --- diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c index 41e61c20a5..bdd4987b30 100644 --- a/gtk/gtkpathbar.c +++ b/gtk/gtkpathbar.c @@ -418,13 +418,11 @@ set_button_image (GtkPathBar *path_bar, ButtonData *button_data) { struct SetButtonImageData *data; + GIcon *root_icon = NULL; switch (button_data->type) { case ROOT_BUTTON: - - GIcon *root_icon = NULL; - if (!button_data->mount && path_bar->root_icon != NULL && g_file_is_native (button_data->file)) {