--- - branch: MAIN date: Tue Feb 8 12:59:17 UTC 2022 files: - new: '1.26' old: '1.25' path: src/sys/kern/subr_pcu.c pathrev: src/sys/kern/subr_pcu.c@1.26 type: modified - new: '1.17' old: '1.16' path: src/sys/kern/subr_psref.c pathrev: src/sys/kern/subr_psref.c@1.17 type: modified - new: '1.9' old: '1.8' path: src/sys/kern/subr_thmap.c pathrev: src/sys/kern/subr_thmap.c@1.9 type: modified id: 20220208T125917Z.3db28c8bb2b5d5fd385cc007412ba4cfd1a44746 log: | kern: Mark some functions __diagused to pacify clang. These functions are called only in KASSERT. This shouldn't be a problem since the recent change to make KASSERT compile (but not run) the expression, via sizeof, so the functions are referenced -- which I did in order to avoid having #ifdefs and regular build breakage because someone forgot to build with or without DIAGNOSTIC. But apparently clang decided to make it a problem. Maybe we should just set -Wno-unneeded-internal-declaration -- not clear it flags any real problems, but it takes effort to research because apparently clang has no documentation about what else it does or why anyone decided this is objectionable enough to turn it on by default. (The only documentation it seems to have, two example warning messages with no elaboration at , seems to indicate it is mixed up with warning about static non-inline functions in header files.) module: src subject: 'CVS commit: src/sys/kern' unixtime: '1644325157' user: riastradh