diff options
| author | Martin Hořeňovský | 2020-02-25 12:39:40 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-02-26 16:07:54 +0100 |
| commit | d1ffaf55a1653575a5a24da738ee777cdb85626f (patch) | |
| tree | aa3988bec4f004e6c0d4d8fb11cde388e9515584 /examples/020-TestCase-2.cpp | |
| parent | 33b47f7309653329fdd160867acd1830d9959ab2 (diff) | |
| download | catch3-d1ffaf55a1653575a5a24da738ee777cdb85626f.tar.gz | |
Fix warnings in ExtraTests and Examples
Diffstat (limited to 'examples/020-TestCase-2.cpp')
| -rw-r--r-- | examples/020-TestCase-2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/020-TestCase-2.cpp b/examples/020-TestCase-2.cpp index 08b313e0..43c0aee0 100644 --- a/examples/020-TestCase-2.cpp +++ b/examples/020-TestCase-2.cpp @@ -4,7 +4,7 @@ #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 } |