freebsd-src/sys/ufs
Dimitry Andric c9dde6f0c7 Fix unused variable warning in ffs_snapshot.c
With clang 15, the following -Werror warning is produced:

    sys/ufs/ffs/ffs_snapshot.c:204:7: error: variable 'redo' set but not used [-Werror,-Wunused-but-set-variable]
            long redo = 0, snaplistsize = 0;
                 ^

The 'redo' variable is only used when DIAGNOSTIC is defined. Ensure it
is only declared and set in that case.

MFC after:	3 days
2022-07-26 21:32:51 +02:00
..
ffs Fix unused variable warning in ffs_snapshot.c 2022-07-26 21:32:51 +02:00
ufs Adjust function definition in ufs_dirhash.c to avoid clang 15 warnings 2022-07-26 21:25:09 +02:00