The branch main has been updated by siva:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=fead44b3ed61a09c2a0c4f79537462e837067fce

commit fead44b3ed61a09c2a0c4f79537462e837067fce
Author:     Siva Mahadevan <[email protected]>
AuthorDate: 2026-09-10 14:38:44 +0000
Commit:     Siva Mahadevan <[email protected]>
CommitDate: 2026-09-10 14:38:44 +0000

    fsck_msdosfs: remove unused variable
    
    This fixes the build with gcc 16 after the changes
    to -Wunused*[0].
    
    [0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused
    
    Reviewed by:    delphij
    MFC after:      3 days
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D59543
---
 sbin/fsck_msdosfs/dir.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sbin/fsck_msdosfs/dir.c b/sbin/fsck_msdosfs/dir.c
index 2ae0d8af4553..ab3a8fa000fd 100644
--- a/sbin/fsck_msdosfs/dir.c
+++ b/sbin/fsck_msdosfs/dir.c
@@ -449,10 +449,10 @@ checksize(struct fat_descriptor *fat, u_char *p, struct 
dosDirEntry *dir)
                      fullpath(dir));
                if (ask(1, "Drop superfluous clusters")) {
                        cl_t cl;
-                       u_int32_t sz, len;
+                       u_int32_t sz;
 
-                       for (cl = dir->head, len = sz = 0;
-                           (sz += boot->ClusterSize) < dir->size; len++)
+                       for (cl = dir->head, sz = 0;
+                           (sz += boot->ClusterSize) < dir->size;)
                                cl = fat_get_cl_next(fat, cl);
                        clearchain(fat, fat_get_cl_next(fat, cl));
                        ret = fat_set_cl_next(fat, cl, CLUST_EOF);

Reply via email to