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/010-TestCase.cpp | |
| parent | 33b47f7309653329fdd160867acd1830d9959ab2 (diff) | |
| download | catch3-d1ffaf55a1653575a5a24da738ee777cdb85626f.tar.gz | |
Fix warnings in ExtraTests and Examples
Diffstat (limited to 'examples/010-TestCase.cpp')
| -rw-r--r-- | examples/010-TestCase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/010-TestCase.cpp b/examples/010-TestCase.cpp index f8af548a..9c676f82 100644 --- a/examples/010-TestCase.cpp +++ b/examples/010-TestCase.cpp @@ -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 } |