Repository navigation
Commit 0dcba07
committed
Fix use of strchr with new GCC
According to C specification, 7.28.5.1, strchr() is a generic function
and its string argument's type is promoted to the result. So if it is
const char*, the result will be const char* as well.
gcc in Fedora Rawhide (15.2.1 20251111 or later) implements this
conformance, resulting in a compilation fail with
-Werror=discarded-qualifiers.
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>1 parent e11e179 commit 0dcba07
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
993 | 993 | | |
994 | 994 | | |
995 | 995 | | |
996 | | - | |
| 996 | + | |
997 | 997 | | |
998 | 998 | | |
999 | 999 | | |
| |||
0 commit comments