apply warning limit

This commit is contained in:
Axel Kohlmeyer
2021-05-05 14:48:20 -04:00
parent 14f1c62adf
commit 87283f7269

View File

@ -249,6 +249,7 @@ void Error::_one(const std::string &file, int line, fmt::string_view format,
void Error::warning(const std::string &file, int line, const std::string &str, int logflag)
{
if ((allwarn > maxwarn) || (maxwarn < 0)) return;
++numwarn;
std::string mesg = fmt::format("WARNING: {} ({}:{})\n",
str,truncpath(file),line);