mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix clang release build (#847)
Avoid missing non-void function return (#846)
This commit is contained in:
@@ -302,18 +302,11 @@ const std::string& DataRow::operator[](int column)const
|
||||
|
||||
std::string& DataRow::operator[](int column)
|
||||
{
|
||||
assert((column > -1) && "Index out of bound");
|
||||
assert((column > -1 && (size_t)column <= m_row.size())
|
||||
&& "Index out of bound");
|
||||
if ((size_t)column == m_row.size()) m_row.push_back("");
|
||||
|
||||
if ((size_t)column < m_row.size())
|
||||
return m_row[column];
|
||||
|
||||
if (column == m_row.size())
|
||||
{
|
||||
m_row.push_back("");
|
||||
return m_row[column];
|
||||
}
|
||||
|
||||
assert(0 && "Index out of bound.");
|
||||
return m_row[column];
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user