Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/examples/010-TestCase.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-02-25 12:39:40 +0100
committerMartin Hořeňovský2020-02-26 16:07:54 +0100
commitd1ffaf55a1653575a5a24da738ee777cdb85626f (patch)
treeaa3988bec4f004e6c0d4d8fb11cde388e9515584 /examples/010-TestCase.cpp
parent33b47f7309653329fdd160867acd1830d9959ab2 (diff)
downloadcatch3-d1ffaf55a1653575a5a24da738ee777cdb85626f.tar.gz
Fix warnings in ExtraTests and Examples
Diffstat (limited to 'examples/010-TestCase.cpp')
-rw-r--r--examples/010-TestCase.cpp2
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
}