NetBSD/distrib
rillig 715e58e70b lint: add additional queries that are not enabled by default
In the last 18 months, several lint warnings have been made adjusted to
allow common usage patterns.  For example, lint no longer warns about a
constant condition in the statement 'do { ... } while (false)' (message
161), as this pattern is well-known in statement-like macros, making it
unlikely that the 'false' is a mistake.  Another example is casts
between unequal pointer types (message 247) for a few well-known
patterns that are unlikely to be bugs.

Occasionally, it is useful to query the code for patterns or events that
would not justify a warning.  These patterns are modeled as predefined
queries that can be selected individually, in addition to and
independently of the existing warnings and errors.

New queries can be added as needed, in the same way as new warnings.
Queries that are deemed no longer used can be deactivated in the same
way as warnings that are no longer used.

As long as none of the queries is enabled, they produce a minimal
overhead of querying a single global variable.  Computations that are
more expensive than a few machine instructions should be guarded by
any_query_enabled.

https://mail-index.netbsd.org/source-changes-d/2022/06/28/msg013716.html

ok christos@
2022-07-05 22:50:41 +00:00
..
acorn32 PR/56207: Jan-Benedict Glaw: Handle error from find when removing CVS 2021-05-24 22:40:44 +00:00
alpha Update some distrib X11R6 references to X11R7 2021-11-02 22:02:42 +00:00
amd64 Restore Makefile.installimage include after variables are set. Makes amd64 2022-05-22 19:32:41 +00:00
amiga s/hierach/hierarch/ 2022-05-28 21:57:39 +00:00
arc Shrink ramdisk to make RAMDISK kernel smaller for ARC BIOS restriction. 2020-05-29 23:12:12 +00:00
atari Drop IEEE 802.11 support from ifconfig(8). 2022-05-11 10:47:10 +00:00
bebox bump bebox and prep image sizes for GCC 9. 2020-09-15 08:13:51 +00:00
cats PR install/54780: in the (of course totally unlikely) case that sysinst 2020-01-09 19:17:40 +00:00
cdrom Copy -current to 9.0, this has diverged (macppc 601 support and others, 2019-12-05 10:25:41 +00:00
cobalt handle mipsn64 2021-04-25 23:40:05 +00:00
common allow some invocations of expr(1) to "fail" - expr(1) returns "1" is 2022-05-15 00:05:24 +00:00
dreamcast Try to shrink ramdiskbin binary. 2020-11-28 05:16:06 +00:00
emips PR install/54780: in the (of course totally unlikely) case that sysinst 2020-01-09 19:17:40 +00:00
evbarm Grow a little 2021-12-31 16:40:59 +00:00
evbmips handle mipsn64 2021-04-25 23:40:05 +00:00
evbppc Bump ramdisk size slightly 2020-11-06 18:36:20 +00:00
evbsh3 PR install/54780: in the (of course totally unlikely) case that sysinst 2020-01-09 19:17:40 +00:00
ews4800mips Put a message in build error logs to notify what this target builds. 2020-06-14 05:10:33 +00:00
hp300 Use more shrinked binaries from distrib/utils/x_foo versions. 2021-07-09 19:11:06 +00:00
hpcarm Add "build.sh live-image" support for hpcarm. 2020-03-21 14:25:49 +00:00
hpcmips Use libhack and the non-widechar hacked version of curses for 2021-11-01 19:37:32 +00:00
hpcsh PR install/54780: in the (of course totally unlikely) case that sysinst 2020-01-09 19:17:40 +00:00
hppa bump 2022-01-13 08:25:24 +00:00
i386 Grow to fit debug kernels 2021-12-31 16:43:04 +00:00
ia64 Consistently use ${RELEASEDIR}/${RELEASEMACHINE} instead of 2019-09-23 13:42:30 +00:00
ibmnws 1. Remove all the special handling of variables (-d -p -P -s -S) that 2019-12-29 18:26:16 +00:00
landisk PR install/54780: in the (of course totally unlikely) case that sysinst 2020-01-09 19:17:40 +00:00
luna68k Use more shrinked binaries from distrib/utils/x_foo versions. 2021-07-10 03:19:12 +00:00
mac68k Use proper release version strings ("9.1" rather than "91") in banners. 2020-12-05 18:52:06 +00:00
macppc While we do not yet have any 64bit kernels, do not build 2021-05-25 11:55:40 +00:00
miniroot fix various typos, mainly s/trasfering/transferring/ and s/theese/these/. 2022-05-03 20:52:30 +00:00
mipsco PR install/54780: in the (of course totally unlikely) case that sysinst 2020-01-09 19:17:40 +00:00
mvme68k Use proper release version strings ("9.1" rather than "91") in banners. 2020-12-05 18:52:06 +00:00
mvmeppc Consistently use ${RELEASEDIR}/${RELEASEMACHINE} instead of 2019-09-23 13:42:30 +00:00
news68k Use more shrinked x_foo binaries. 2020-06-13 19:15:43 +00:00
newsmips PR install/54780: in the (of course totally unlikely) case that sysinst 2020-01-09 19:17:40 +00:00
notes some srm firmware (including legacy platforms) still available at hp ftp. 2022-06-03 15:36:36 +00:00
ofppc PR install/54780: in the (of course totally unlikely) case that sysinst 2020-01-09 19:17:40 +00:00
playstation2 PR install/54780: in the (of course totally unlikely) case that sysinst 2020-01-09 19:17:40 +00:00
pmax handle mipsn64 2021-04-25 23:40:05 +00:00
prep bump bebox and prep image sizes for GCC 9. 2020-09-15 08:13:51 +00:00
riscv PR install/54780: in the (of course totally unlikely) case that sysinst 2020-01-09 19:17:40 +00:00
rs6000 PR install/54780: in the (of course totally unlikely) case that sysinst 2020-01-09 19:17:40 +00:00
sandpoint grow 2022-03-26 17:09:53 +00:00
sets lint: add additional queries that are not enabled by default 2022-07-05 22:50:41 +00:00
sgimips PR install/54780: in the (of course totally unlikely) case that sysinst 2020-01-09 19:17:40 +00:00
shark PR install/54780: in the (of course totally unlikely) case that sysinst 2020-01-09 19:17:40 +00:00
sparc s/hierach/hierarch/ 2022-05-28 21:57:39 +00:00
sparc64 Get back to terminfo.cdb. 2020-03-27 15:18:22 +00:00
sun2 Use more SMALL binaries and reduce diffs between sun2 and sun3. 2021-06-27 05:25:12 +00:00
sun3 Use more SMALL binaries and reduce diffs between sun2 and sun3. 2021-06-27 05:25:12 +00:00
syspkg s/progam/program/ 2021-12-05 07:18:53 +00:00
utils Introduce NOIEEE80211 option, by which IEEE 802.11 support is dropped from 2022-05-11 10:45:48 +00:00
vax kernfs no longer needs a hacky workaround to make rootdev appear. 2020-02-26 16:00:48 +00:00
x68k Use more shrinked tools in src/distrib/utils. 2022-02-04 17:21:56 +00:00
zaurus Add "build.sh live-image" support for zaurus. 2020-03-21 14:24:12 +00:00
Makefile
Makefile.inc