Handle multiple warnings correctly in ApiBase::setWarning(). Calling this function...