Closed cgutman closed 5 months ago
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.
tooltip
const char*
strncpy()
-Wwrite-strings
Hi @cgutman , thank you!
The
tooltip
member should be aconst char*
since the string data is just used as a source forstrncpy()
. This allows callers to initialize the tooltip member with a string literal without triggering a-Wwrite-strings
warning.