Registers the callback function being called if the parser detects any issues.
| this | |
| warning_cb |
a ParserWarningFunc or null to clear the callback |
| notify |
callback function ran on destruction |
| user_data |
data passed to the warning callback function |