mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 15:26:11 +01:00
Suppress spurious "not all control paths return a value" warning in Visual Studio
This commit is contained in:
parent
6d11d56fea
commit
f9cc21a174
@ -174,6 +174,7 @@ public:
|
|||||||
index += generator->size();
|
index += generator->size();
|
||||||
}
|
}
|
||||||
CATCH_INTERNAL_ERROR( "Indexed past end of generated range" );
|
CATCH_INTERNAL_ERROR( "Indexed past end of generated range" );
|
||||||
|
return T(); // Suppress spurious "not all control paths return a value" warning in Visual Studio - if you know how to fix this please do so
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user