Skip to content
Snippets Groups Projects
Commit 4027ad9c authored by Alexey Matveichev's avatar Alexey Matveichev
Browse files

Unused parameter & deprecated register storage class

parent c9eb587c
Branches
Tags
No related merge requests found
...@@ -105,7 +105,7 @@ inline Foam::label Foam::FRWGraph<T,width>::size() const ...@@ -105,7 +105,7 @@ inline Foam::label Foam::FRWGraph<T,width>::size() const
} }
template<class T, Foam::label width> template<class T, Foam::label width>
inline Foam::label Foam::FRWGraph<T,width>::sizeOfRow(const label rowI) const inline Foam::label Foam::FRWGraph<T,width>::sizeOfRow(const label /*rowI*/) const
{ {
return width; return width;
} }
...@@ -155,7 +155,11 @@ inline bool Foam::FRWGraph<T,width>::contains ...@@ -155,7 +155,11 @@ inline bool Foam::FRWGraph<T,width>::contains
) const ) const
{ {
const label start = rowI * width; const label start = rowI * width;
#if defined(__clang__)
for(label i=0;i<width;++i)
#else
for(register label i=0;i<width;++i) for(register label i=0;i<width;++i)
#endif
if( data_[start+i] == e ) if( data_[start+i] == e )
return true; return true;
...@@ -170,7 +174,11 @@ inline Foam::label Foam::FRWGraph<T,width>::containsAtPosition ...@@ -170,7 +174,11 @@ inline Foam::label Foam::FRWGraph<T,width>::containsAtPosition
) const ) const
{ {
const label start = rowI * width; const label start = rowI * width;
#if defined(__clang__)
for(label i=0;i<width;++i)
#else
for(register label i=0;i<width;++i) for(register label i=0;i<width;++i)
#endif
if( data_[start+i] == e ) if( data_[start+i] == e )
return i; return i;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment