Avoid compiler warning
Under some configure options, gcc13 emits an intractable warning on this line. This patch works around it. Fixes: QTBUG-115809 Change-Id: Ib63f2ad81ebdb1f609a7f42c25119c5ae29f08bb Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io> (cherry picked from commit f8f23c43feb2fb233a8f047cd1b82259498d9aeb) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
3ef96cc184
commit
f06ad33e46
@ -650,7 +650,8 @@ int QKdPointTree::build(int begin, int end, int depth)
|
||||
}
|
||||
}
|
||||
|
||||
qSwap(m_nodes.at(last), m_nodes.at(begin));
|
||||
if (last != begin)
|
||||
qSwap(m_nodes.at(last), m_nodes.at(begin));
|
||||
|
||||
if (last > begin)
|
||||
m_nodes.at(last).left = &m_nodes.at(build(begin, last, depth + 1));
|
||||
|
Loading…
x
Reference in New Issue
Block a user