From dd816c5b2da058d0814fb1d20e270e26faa1bea4 Mon Sep 17 00:00:00 2001
From: Andreas Mohr <and@gmx.li>
Date: Sat, 14 Jan 2023 10:11:43 +0000
Subject: [PATCH] (find.c) remove unused variable
find.c:1807:13: error: variable 'i' set but not used [-Werror,-Wunused-but-set-variable]
int i;
^
Found by clang 15
Signed-off-by: Andreas Mohr <and@gmx.li>
---
src/filemanager/find.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/filemanager/find.c b/src/filemanager/find.c
index b9d5320bc..6b42bdd34 100644
a
|
b
|
do_find (WPanel * panel, const char *start_dir, ssize_t start_dir_len, const cha |
1804 | 1804 | |
1805 | 1805 | if (return_value == B_PANELIZE && *filename) |
1806 | 1806 | { |
1807 | | int i; |
1808 | 1807 | struct stat st; |
1809 | 1808 | GList *entry; |
1810 | 1809 | dir_list *list = &panel->dir; |
… |
… |
do_find (WPanel * panel, const char *start_dir, ssize_t start_dir_len, const cha |
1813 | 1812 | panel_clean_dir (panel); |
1814 | 1813 | dir_list_init (list); |
1815 | 1814 | |
1816 | | for (i = 0, entry = listbox_get_first_link (find_list); entry != NULL; |
1817 | | i++, entry = g_list_next (entry)) |
| 1815 | for (entry = listbox_get_first_link (find_list); entry != NULL; |
| 1816 | entry = g_list_next (entry)) |
1818 | 1817 | { |
1819 | 1818 | const char *lc_filename = NULL; |
1820 | 1819 | WLEntry *le = LENTRY (entry->data); |