From: Collin Funk Date: Sun, 9 Aug 2026 18:19:23 +0000 (-0700) Subject: fts: Pacify -Wuseless-cast warnings when GNULIB_FTS_DEBUG is defined. X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;h=HEAD;p=thirdparty%2Fgnulib.git fts: Pacify -Wuseless-cast warnings when GNULIB_FTS_DEBUG is defined. * lib/fts.c (find_matching_ancestor): Pacify -Wuseless-cast via compound literals. --- diff --git a/ChangeLog b/ChangeLog index 93089fa867..beaeff585c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2026-08-09 Collin Funk + + 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 bootstrap: Fix error "client sha256; server sha1" seen by some users. diff --git a/lib/fts.c b/lib/fts.c index 98851cdaf1..d7265ed292 100644 --- 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