Skip to content
Snippets Groups Projects
Commit e92ad815 authored by dt's avatar dt
Browse files

Add a default: label to the ToolChainType switches so that gcc doesn't

complain.

Added a Q_ASSERT to the case that shouldn't happen.
parent 32e839c2
No related branches found
No related tags found
No related merge requests found
......@@ -754,6 +754,7 @@ static IDebuggerEngine *debuggerEngineForToolChain(ProjectExplorer::ToolChain::T
case ProjectExplorer::ToolChain::OTHER:
case ProjectExplorer::ToolChain::UNKNOWN:
case ProjectExplorer::ToolChain::INVALID:
default:
break;
}
if (Debugger::Constants::Internal::debug)
......
......@@ -135,6 +135,8 @@ QString ToolChain::toolChainName(ToolChainType tc)
return QCoreApplication::translate("ToolChain", "<Invalid>");
case UNKNOWN:
break;
default:
Q_ASSERT("Missing name for Toolchaintype");
};
return QCoreApplication::translate("ToolChain", "<Unknown>");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment