git: msdosfs: Silence a -Wmaybe-uninitialized false warning

Aaron LI aly at crater.dragonflybsd.org
Tue Oct 13 04:50:41 PDT 2026


commit eeca36f2df792d531fcb0fd7c3ba06e80f0c631f
Author: Aaron LI <aly at aaronly.me>
Date:   Tue Oct 13 19:36:49 2026 +0800

    msdosfs: Silence a -Wmaybe-uninitialized false warning
    
    GCC 12.5 gave the following warning. It's a false positive, but let's
    silence it as it's easy to do.
    
    ```
    /usr/src/sys/vfs/msdosfs/msdosfs_fat.c: In function 'freeclusterchain':
    /usr/src/sys/vfs/msdosfs/msdosfs_fat.c:874:17: warning: 'bn' may be used uninitialized [-Wmaybe-uninitialized]
      874 |                 updatefats(pmp, bp, bn);
          |                 ^~~~~~~~~~~~~~~~~~~~~~~
    /usr/src/sys/vfs/msdosfs/msdosfs_fat.c:819:16: note: 'bn' was declared here
      819 |         u_long bn, bo, bsize, byteoffset;
          |                ^~
    ```

Summary of changes:
 sys/vfs/msdosfs/msdosfs_fat.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/eeca36f2df792d531fcb0fd7c3ba06e80f0c631f


-- 
DragonFly BSD source repository


More information about the Commits mailing list