Commit b0ae6561 authored by Cory Quammen's avatar Cory Quammen

Fix unreachable code warning in MSVC

The code potentially had two successive return statements.
MSVC would correctly complain about unreachable code in that case.
Fix with a preprocessor else branch.
parent a21d2f91
Pipeline #14865 passed with stage
......@@ -112,10 +112,11 @@ void @PLUGIN_NAME@_Plugin::GetBinaryResources(
vtkClientServerInterpreterInitializer::InterpreterInitializationCallback
@PLUGIN_NAME@_Plugin::GetInitializeInterpreterCallback()
{
# if defined(INITIALIZE_WRAPPING) || defined(INITIALIZE_EXTRA_CS_MODULES)
#if defined(INITIALIZE_WRAPPING) || defined(INITIALIZE_EXTRA_CS_MODULES)
return @PLUGIN_NAME@_CombinedInitialize;
# endif
#else
return NULL;
#endif
}
//-----------------------------------------------------------------------------
......
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