OpenGrok
Cross Reference: msg_341.c
xref
: /
src
/
tests
/
usr.bin
/
xlint
/
lint1
/
msg_341.c
Home
|
History
|
Annotate
|
Download
|
only in
lint1
History log of
/src/tests/usr.bin/xlint/lint1/msg_341.c
Revision
Date
Author
Comments
1.5
28-Jan-2025
rillig
tests/lint: fix platform-specific tests for <ctype.h> usage
On arm (32-bit, ptrdiff_t is long), there was an extra warning that
didn't show up on i386 or x86_64.
After moving the test to the platform-specific tests, the i386 test shows
an additional warning about integer overflow. This is because the
platform-specific tests run with more lint warnings enabled than in
msg_341.c.
1.4
18-Dec-2024
rillig
lint: warn about unusual argument types in <ctype.h> functions
1.3
28-Mar-2023
rillig
branches: 1.3.2;
lint: warn about extern declarations outside headers
https://mail-index.netbsd.org/tech-userlevel/2023/03/15/msg013727.html
1.2
17-Jun-2022
rillig
tests/lint: make 'expect+-' comments stricter
Previously, the expectations from these comments were already satisfied
if the expectation occurred somewhere in the actual message from lint.
This meant that the prefix 'error:' or 'warning:' could be omitted from
the 'expect' comment. These omissions were hard to see in a manual
review. Now any omissions must be visually marked with '...'.
The test msg_342 now reports its messages properly as being in the file
msg_342.c, rather than msg_341.c. This had been a copy-and-paste
mistake.
1.1
05-Apr-2021
rillig
lint: warn about for wrong type cast in argument to ctype.h functions
The argument to most of the functions from <ctype.h> "shall either be
representable as an 'unsigned char' or shall equal the value of the
macro EOF".
When confronted with the infamous warning 'array subscript has type
char', there are enough programmers who don't know the background of
that warning and thus fix it in a wrong way. Neither GCC nor Clang
explain its warning to target these programmers.
Both GCC and Clang warn about 'array subscript has type char', but they
ignore the other requirements of the <ctype.h> functions, even though
these are in the C standard library.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94182
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95177
https://stackoverflow.com/a/60696378
1.3.2.1
02-Aug-2025
perseant
Sync with HEAD
Indexes created Sat Oct 18 08:10:09 GMT 2025