From d40585d7b159301ff323bdf92143519cacb71ed2 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Wed, 30 Jul 2014 21:55:18 +0300 Subject: [PATCH] Debugger: Fix comparison of wrong value debuggeritem.cpp:259: warning: comparison between 'enum ProjectExplorer::Abi::OS' and 'enum ProjectExplorer::Abi::OSFlavor' [-Wenum-compare] Change-Id: I3b4f484abec56429bb7d7796749e7f1fa4e0317a Reviewed-by: Fawzi Mohamed --- src/plugins/debugger/debuggeritem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/debugger/debuggeritem.cpp b/src/plugins/debugger/debuggeritem.cpp index 56e573938ad..f95d2e3f526 100644 --- a/src/plugins/debugger/debuggeritem.cpp +++ b/src/plugins/debugger/debuggeritem.cpp @@ -256,7 +256,7 @@ static DebuggerItem::MatchLevel matchSingle(const Abi &debuggerAbi, const Abi &t return DebuggerItem::DoesNotMatch; // We have at least 'Matches well' now. Mark the combinations we really like. - if (HostOsInfo::isWindowsHost() && engineType == GdbEngineType && targetAbi.os() == Abi::WindowsMSysFlavor) + if (HostOsInfo::isWindowsHost() && engineType == GdbEngineType && targetAbi.osFlavor() == Abi::WindowsMSysFlavor) return DebuggerItem::MatchesPerfectly; if (HostOsInfo::isLinuxHost() && engineType == GdbEngineType && targetAbi.os() == Abi::LinuxOS) return DebuggerItem::MatchesPerfectly;