This will allow us to increase WARNS in at least makefs.
From NetBSD fs.h 1.57, 1.58.
https://github.com/NetBSD/src/commit/e8458667baaf7c856681cef5944a68649ccf1930
https://github.com/NetBSD/src/commit/03c60fb61968c55563c203d2454702610c71cf34
Differential D10578
fs.h: fix signed/unsigned issues, from NetBSD emaste on May 3 2017, 12:39 AM. Authored by Tags None Referenced Files
Subscribers None
Details This will allow us to increase WARNS in at least makefs. From NetBSD fs.h 1.57, 1.58. https://github.com/NetBSD/src/commit/e8458667baaf7c856681cef5944a68649ccf1930 Tinderbox build
Diff Detail
Event TimelineComment Actions I dislike the direct use of uint64_t for disk address. Some abstraction is IMO warranted there, off_t use was relatively sane. Note that our daddr_t type, which represents disk block number, is also signed. Comment Actions The signedness warning arises because the UFS dinode di_size is u_int64_t. Is the right fix then just to sprinkle casts everywhere? Comment Actions I am not sure, and since I noted that e.g. lblktosize() is legitimately used for extended data blocks, which have negative indexes, I think changing signess there is tricky.
|