mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-02 18:07:59 +00:00
Fix warnings in ExtraTests and Examples
This commit is contained in:
parent
33b47f7309
commit
d1ffaf55a1
8 changed files with 27 additions and 12 deletions
|
@ -6,7 +6,7 @@
|
|||
// And write tests in the same file:
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
int Factorial( int number ) {
|
||||
static int Factorial( int number ) {
|
||||
return number <= 1 ? number : Factorial( number - 1 ) * number; // fail
|
||||
// return number <= 1 ? 1 : Factorial( number - 1 ) * number; // pass
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue