diff options
| author | Martin Hořeňovský | 2022-05-02 12:57:46 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2022-05-03 13:54:05 +0200 |
| commit | e2d07d35f4e31fa07fda89aadfb547e20b6b63b3 (patch) | |
| tree | 680d1ddc28cc57dec6f5322d8c1d30a2d2bf5ffd /tests/SelfTest/UsageTests/Compilation.tests.cpp | |
| parent | d2cb934d283bcaeb78ce9dec3f9755650db414ba (diff) | |
| download | catch3-e2d07d35f4e31fa07fda89aadfb547e20b6b63b3.tar.gz | |
Add -Wmissing-prototypes to common warnings
Diffstat (limited to 'tests/SelfTest/UsageTests/Compilation.tests.cpp')
| -rw-r--r-- | tests/SelfTest/UsageTests/Compilation.tests.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/SelfTest/UsageTests/Compilation.tests.cpp b/tests/SelfTest/UsageTests/Compilation.tests.cpp index d45f8e6c..5d9ab3f0 100644 --- a/tests/SelfTest/UsageTests/Compilation.tests.cpp +++ b/tests/SelfTest/UsageTests/Compilation.tests.cpp @@ -26,7 +26,7 @@ namespace bar { #ifdef __GNUC__ #pragma GCC diagnostic ignored "-Wmissing-declarations" #endif -std::ostream& operator<<(std::ostream& out, foo::helper_1403 const&) { +static std::ostream& operator<<(std::ostream& out, foo::helper_1403 const&) { return out << "[1403 helper]"; } /////////////////////////////// @@ -49,7 +49,7 @@ struct logic_t { }; -void throws_int(bool b) { +static void throws_int(bool b) { if (b) { throw 1; } @@ -69,7 +69,7 @@ bool templated_tests(T t) { struct A {}; -std::ostream &operator<<(std::ostream &o, const A &) { return o << 0; } +static std::ostream &operator<<(std::ostream &o, const A &) { return o << 0; } struct B : private A { bool operator==(int) const { return true; } |