diff options
author | monsta <[email protected]> | 2017-03-28 12:30:51 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2017-03-28 12:32:47 +0300 |
commit | e3953e675e45d59ae0ef720e4bf65ea6bab97fb4 (patch) | |
tree | 155784f3dc352fe544077a8817bcd4dd368168cb /libcaja-private | |
parent | 96fdd4f17237dc55be5e2a9cde5a20a23ce53086 (diff) | |
download | caja-e3953e675e45d59ae0ef720e4bf65ea6bab97fb4.tar.bz2 caja-e3953e675e45d59ae0ef720e4bf65ea6bab97fb4.tar.xz |
fix build with gcc 4.9.2 (looks like it's in c89 mode by default)
Diffstat (limited to 'libcaja-private')
-rw-r--r-- | libcaja-private/caja-search-engine-simple.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libcaja-private/caja-search-engine-simple.c b/libcaja-private/caja-search-engine-simple.c index 016b03e6..41021ef9 100644 --- a/libcaja-private/caja-search-engine-simple.c +++ b/libcaja-private/caja-search-engine-simple.c @@ -314,9 +314,13 @@ file_has_all_tags (GFileInfo *info, GList *tags) return FALSE; } - for (GList *l = tags; l != NULL; l = l->next) { + GList *l; + + for (l = tags; l != NULL; l = l->next) { gboolean found = FALSE; - for (int i = 0; i < file_tags_len; ++i) { + int i; + + for (i = 0; i < file_tags_len; ++i) { if (g_strcmp0 (l->data, file_tags[i]) == 0) { found = TRUE; break; |