3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-06 06:03:23 +00:00

Added "yosys -qq" to also quiet warning messages

This commit is contained in:
Clifford Wolf 2014-11-09 11:02:20 +01:00
parent a112b10934
commit 1e0f6b5ddb
4 changed files with 9 additions and 4 deletions

View file

@ -41,6 +41,7 @@ SHA1 *log_hasher = NULL;
bool log_time = false;
bool log_cmd_error_throw = false;
bool log_quiet_warnings = false;
int log_verbose_level;
std::vector<int> header_count;
@ -154,14 +155,14 @@ void logv_header(const char *format, va_list ap)
void logv_warning(const char *format, va_list ap)
{
if (log_errfile != NULL)
if (log_errfile != NULL && !log_quiet_warnings)
log_files.push_back(log_errfile);
log("Warning: ");
logv(format, ap);
log_flush();
if (log_errfile != NULL)
if (log_errfile != NULL && !log_quiet_warnings)
log_files.pop_back();
}