Skip to content

fix discarded-qualifiers warning with GCC 16 - #75

Open
graysky2 wants to merge 1 commit into
jow-:masterfrom
graysky2:gcc16
Open

fix discarded-qualifiers warning with GCC 16#75
graysky2 wants to merge 1 commit into
jow-:masterfrom
graysky2:gcc16

Conversation

@graysky2

Copy link
Copy Markdown

strchr() returns char * even when passed a const char *, a known C standard wart. Explicitly cast the return value to char * to satisfy -Werror=discarded-qualifiers

strchr() returns char * even when passed a const char *, a known
C standard wart. Explicitly cast the return value to char * to
satisfy -Werror=discarded-qualifiers

Signed-off-by: John Audia <therealgraysky@proton.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant