mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
Mark `dot_name` and `dotdot_name` as as `__non_string`, to avoid
warnings from clang 21 similar to:
sbin/fsck_msdosfs/dir.c:466:39: error: initializer-string for character array is too long, array size is 11 but initializer has size 12 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization]
466 | static const u_char dot_name[11] = ". ";
| ^~~~~~~~~~~~~
sbin/fsck_msdosfs/dir.c:467:39: error: initializer-string for character array is too long, array size is 11 but initializer has size 12 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization]
467 | static const u_char dotdot_name[11] = ".. ";
| ^~~~~~~~~~~~~
MFC after: 3 days
|
||
|---|---|---|
| .. | ||
| boot.c | ||
| check.c | ||
| dir.c | ||
| dosfs.h | ||
| ext.h | ||
| fat.c | ||
| fsck_msdosfs.8 | ||
| main.c | ||
| Makefile | ||
| Makefile.depend | ||