Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constify tooltip string pointer #15

Merged
merged 2 commits into from
May 12, 2024

Conversation

cgutman
Copy link

@cgutman cgutman commented Dec 31, 2023

The tooltip member should be a const char* since the string data is just used as a source for strncpy(). This allows callers to initialize the tooltip member with a string literal without triggering a -Wwrite-strings warning.

@dmikushin dmikushin merged commit 754b7fc into dmikushin:master May 12, 2024
2 of 4 checks passed
@dmikushin
Copy link
Owner

Hi @cgutman , thank you!

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.

2 participants