| History log of /src/tests/usr.bin/xlint/lint1/msg_346.c |
| Revision | | Date | Author | Comments |
| 1.10 |
| 31-Aug-2024 |
rillig | lint: KNF
|
| 1.9 |
| 02-Aug-2023 |
rillig | branches: 1.9.2; lint: fix plural form in message 150
|
| 1.8 |
| 28-Mar-2023 |
rillig | lint: warn about extern declarations outside headers
https://mail-index.netbsd.org/tech-userlevel/2023/03/15/msg013727.html
|
| 1.7 |
| 22-Jun-2022 |
rillig | lint: add quotes around placeholders for the remaining messages
Reword some of the messages slightly, exchanging brevity for clarity.
Message 138 is kept as-is, as it is not yet covered by any tests.
Message 240 is kep as-is, as it is unreachable.
|
| 1.6 |
| 09-Oct-2021 |
rillig | lint: warn that bsearch effectively discards 'const'
Just like strchr, bsearch takes a const pointer and returns a non-const pointer into the same object.
|
| 1.5 |
| 09-Oct-2021 |
rillig | tests/lint: test effective unconst cast using bsearch
Seen in usr.bin/indent/lexi.c, function lexi.
|
| 1.4 |
| 16-Aug-2021 |
rillig | tests/lint: add tests for several messages about type mismatch
|
| 1.3 |
| 15-Aug-2021 |
rillig | lint: extend check for unconst functions
The functions memchr, strpbrk, strrchr and strstr effectively remove the const qualifier of their first argument, just like strchr.
|
| 1.2 |
| 15-Aug-2021 |
rillig | tests/lint: add tests for more unconst functions
|
| 1.1 |
| 09-Aug-2021 |
rillig | lint: warn about 'char * = strchr(const char *, int)'
Found in findcc.c, there are about 25 other instances of this incongruency in the whole source tree.
For more examples of functions from the C Standard Library that implicitly remove the 'const' qualifier from an argument, see the C++ include file 'cstring'.
|
| 1.9.2.1 |
| 02-Aug-2025 |
perseant | Sync with HEAD
|