Commit bc81e68
committed
Remove discard qualifiers warning with C23 strchr
C23 has qualifier-preserving standard library functions, so calling
strchr with a `const char *` will return a `const char *`. We can change
the type of the local variables because we don't mutate the strings.1 parent 36a22e0 commit bc81e68
3 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6487 | 6487 | | |
6488 | 6488 | | |
6489 | 6489 | | |
6490 | | - | |
| 6490 | + | |
6491 | 6491 | | |
6492 | 6492 | | |
6493 | 6493 | | |
| |||
6707 | 6707 | | |
6708 | 6708 | | |
6709 | 6709 | | |
6710 | | - | |
| 6710 | + | |
6711 | 6711 | | |
6712 | 6712 | | |
6713 | 6713 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1712 | 1712 | | |
1713 | 1713 | | |
1714 | 1714 | | |
1715 | | - | |
| 1715 | + | |
1716 | 1716 | | |
1717 | 1717 | | |
1718 | 1718 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1373 | 1373 | | |
1374 | 1374 | | |
1375 | 1375 | | |
1376 | | - | |
| 1376 | + | |
1377 | 1377 | | |
1378 | 1378 | | |
1379 | 1379 | | |
| |||
0 commit comments