Skip to content

Prevent constant strings warning in ketopt.h by g++#175

Open
galaxy001 wants to merge 1 commit intoattractivechaos:masterfrom
galaxy001:galaxy001-patch-Wwrite-strings
Open

Prevent constant strings warning in ketopt.h by g++#175
galaxy001 wants to merge 1 commit intoattractivechaos:masterfrom
galaxy001:galaxy001-patch-Wwrite-strings

Conversation

@galaxy001
Copy link
Copy Markdown

ko_longopt_t.name should be char const *.
When used in cpp, g++ will warn ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] on every ko_longopt_t.name.

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