Commit 964ef29e authored by Kenneth Moreland's avatar Kenneth Moreland
Browse files

Suppress warning when logging is turned off

There was a case where a VTK-m exception was caught and then used in a
logging message. That is fine, but if VTK-m logging is turned off, that
code is removed and the exception variable goes unused.

There was a time when it was common to have logging turned off in VTK-m,
but now it is almost always on. There is one old-style dashboard that
has logging turned off and is giving a warning about this variable not
being used. It went unnoticed because the dashboard was down at the
time. This should fix the issue.
parent b168c200
Pipeline #247478 passed with stage
in 0 seconds
......@@ -70,6 +70,7 @@ inline VTKM_CONT bool FilterDataSet<Derived>::MapFieldOntoOutput(
"Failed to map field " << field.GetName()
<< " because it is an unknown type. Cast error:\n"
<< error.GetMessage());
(void)error; // Suppress unused error message if logging is turned off.
//the bool valid will be modified by the map algorithm to hold if the
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment