Skip to content
Snippets Groups Projects
Commit c7f305c2 authored by Anthony Royer's avatar Anthony Royer
Browse files

Fix return inside a critical

parent aef15c23
Branches
Tags
No related merge requests found
...@@ -543,9 +543,12 @@ void Msg::Warning(const char *fmt, ...) ...@@ -543,9 +543,12 @@ void Msg::Warning(const char *fmt, ...)
#pragma omp critical(MsgWarning) #pragma omp critical(MsgWarning)
{ {
_warningCount++; _warningCount++;
}
if(GetVerbosity() < 2) return; if(GetVerbosity() < 2) return;
#pragma omp critical(MsgWarning)
{
char str[5000]; char str[5000];
va_list args; va_list args;
va_start(args, fmt); va_start(args, fmt);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment