MySQL 5.6 C API Developer Guide
unsigned int mysql_warning_count(MYSQL *mysql)
Returns the number of errors, warnings, and notes generated during execution of the previous SQL statement.
The warning count.
None.