You seemed to be returning "is this a warning or not", so thats aboolean condition that can be tested locally and returned as such.
Returning a pointer to part of the message and then testing it in code
far far away is likely to be confusing for maintenance.
Then it would be best to make a pull request on github so we can
attach comments to the source, thanks.