remove "register" keyword:
clang warns: 'register' storage class specifier is deprecated http://stackoverflow.com/questions/10675072/is-the-register-keyword-still-used
This commit is contained in:
@@ -377,7 +377,7 @@ void MD2Importer::InternReadFile( const std::string& pFile,
|
||||
for (unsigned int c = 0; c < 3;++c,++iCurrent) {
|
||||
|
||||
// validate vertex indices
|
||||
register unsigned int iIndex = (unsigned int)pcTriangles[i].vertexIndices[c];
|
||||
unsigned int iIndex = (unsigned int)pcTriangles[i].vertexIndices[c];
|
||||
if (iIndex >= m_pcHeader->numVertices) {
|
||||
DefaultLogger::get()->error("MD2: Vertex index is outside the allowed range");
|
||||
iIndex = m_pcHeader->numVertices-1;
|
||||
|
||||
Reference in New Issue
Block a user