summaryrefslogtreecommitdiff
path: root/sys/dev/microcode/rum/microcode.h
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2021-02-04 06:54:59 +0000
committerrillig <rillig@NetBSD.org>2021-02-04 06:54:59 +0000
commitbe9c8d46243a90bd18bbff118752dbe4cf3028ba (patch)
tree7594415a5af2d9136783d1f06a3f0838faf0f5c8 /sys/dev/microcode/rum/microcode.h
parent1153457df70603d24f002884abc03cb7025d47de (diff)
lint: add back "due to prototype" to message 259
That message is only supposed to warn about compatibility to traditional C, in case the function should ever be compiled without its prototype being in effect. All other type checks are supposed to be in another function, as documented, but that type check misses to report a few error-prone type combinations (long to char, long to int). 30 years after the introduction of prototypes with C90, almost all existing code uses prototypes. The warning has thus lost most of its usefulness and can rather be confusing since a conversion from 'char' to 'long' is not problematic with prototypes in action, and the probability of the code being backported to a pre-C90 compiler is diminishingly small. The words "due to prototype" now serve as a hint again. The proper fix could be to suppress this warning in C99 mode since that's far enough from traditional C.
Diffstat (limited to 'sys/dev/microcode/rum/microcode.h')
0 files changed, 0 insertions, 0 deletions