]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
fts: Pacify -Wuseless-cast warnings when GNULIB_FTS_DEBUG is defined. master
authorCollin Funk <collin.funk1@gmail.com>
Sun, 9 Aug 2026 18:19:23 +0000 (11:19 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sun, 9 Aug 2026 18:19:23 +0000 (11:19 -0700)
* lib/fts.c (find_matching_ancestor): Pacify -Wuseless-cast via compound
literals.

ChangeLog
lib/fts.c

index 93089fa8677dd56d60f78d8770199730bfb4e3fb..beaeff585cd395126e3f37437b798917567b8994 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-08-09  Collin Funk  <collin.funk1@gmail.com>
+
+       fts: Pacify -Wuseless-cast warnings when GNULIB_FTS_DEBUG is defined.
+       * lib/fts.c (find_matching_ancestor): Pacify -Wuseless-cast via compound
+       literals.
+
 2026-08-09  Bruno Haible  <bruno@clisp.org>
 
        bootstrap: Fix error "client sha256; server sha1" seen by some users.
index 98851cdaf1c8b1ca8fa7a0c7577f77b352472142..d7265ed292e3efa0b7cc5e69630a1eaf0ed1be14 100644 (file)
--- a/lib/fts.c
+++ b/lib/fts.c
@@ -1662,11 +1662,11 @@ find_matching_ancestor (FTSENT const *e_curr, struct Active_dir const *ad)
        ent = ent->fts_parent)
     printf ("  %s(%"PRIuMAX"/%"PRIuMAX") to %s(%"PRIuMAX"/%"PRIuMAX")...\n",
             ad->fts_ent->fts_accpath,
-            (uintmax_t) ad->dev,
-            (uintmax_t) ad->ino,
+            (uintmax_t) {ad->dev},
+            (uintmax_t) {ad->ino},
             ent->fts_accpath,
-            (uintmax_t) ent->fts_statp->st_dev,
-            (uintmax_t) ent->fts_statp->st_ino);
+            (uintmax_t) {ent->fts_statp->st_dev},
+            (uintmax_t) {ent->fts_statp->st_ino});
 }
 
 void