Fix the build with clang
authorMatthias Clasen <mclasen@redhat.com>
Wed, 26 Apr 2023 21:54:43 +0000 (23:54 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 26 Apr 2023 21:54:43 +0000 (23:54 +0200)
This broke our macos ci.

gtk/gtkpathbar.c

index 41e61c20a5a7e5a19dd6f6228b13af722aa0ffd1..bdd4987b30b3a5ace51ab0be8f913635cda10054 100644 (file)
@@ -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))
         {