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

summaryrefslogtreecommitdiffhomepage
path: root/examples/020-TestCase-2.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/020-TestCase-2.cpp
parent33b47f7309653329fdd160867acd1830d9959ab2 (diff)
downloadcatch3-d1ffaf55a1653575a5a24da738ee777cdb85626f.tar.gz
Fix warnings in ExtraTests and Examples
Diffstat (limited to 'examples/020-TestCase-2.cpp')
-rw-r--r--examples/020-TestCase-2.cpp2
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
}