Skip to content

Commit

Permalink
issue 8747 Improve output with WARN_AS_ERROR = FAIL_ON_WARNINGS
Browse files Browse the repository at this point in the history
Setting text indication for a warning to error for `WARN_AS_ERROR = FAIL_ON_WARNINGS` like it is already done for `WARN_AS_ERROR = YES`.
  • Loading branch information
albert-github authored and doxygen committed Sep 1, 2021
1 parent 47dec8a commit bce44ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void initWarningFormat()
g_warnFile = stderr;
}
g_warnBehavior = Config_getEnum(WARN_AS_ERROR);
if (g_warnBehavior == WARN_AS_ERROR_t::YES)
if (g_warnBehavior != WARN_AS_ERROR_t::NO)
{
g_warningStr = g_errorStr;
}
Expand Down

0 comments on commit bce44ee

Please sign in to comment.