mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-02 13:25:41 +02:00
Suppress spurious "not all control paths return a value" warning in Visual Studio
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
Reference in New Issue
Block a user