diff options
| author | Martin Hořeňovský | 2017-09-07 16:51:33 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2017-09-07 17:25:15 +0200 |
| commit | 9aa96712aec495d5a0d580f773c292803cc662aa (patch) | |
| tree | fa68e3b1bad433075b8254183c0cc4f9b7af624c /include/internal/catch_stringref.cpp | |
| parent | 6105282c4f74984eede1f6ab37b2340f4db19f8a (diff) | |
| download | catch3-9aa96712aec495d5a0d580f773c292803cc662aa.tar.gz | |
Sweep out some extra warnings
Swept:
`-Wpadded` in some places (where it caused extra size, instead of just
saying "hey, we padded struct at the end to align, just as standard says")
`-Wweak-vtables` everywhere (Clang)
`-Wexit-time-destructors` everywhere (Clang)
`-Wmissing-noreturn` everywhere (Clang)
The last three are enabled for Clang compilation going forward.
Also enabled `-Wunreachable-code` for Clang and GCC
Diffstat (limited to 'include/internal/catch_stringref.cpp')
| -rw-r--r-- | include/internal/catch_stringref.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/internal/catch_stringref.cpp b/include/internal/catch_stringref.cpp index e22b6c94..059f1c6f 100644 --- a/include/internal/catch_stringref.cpp +++ b/include/internal/catch_stringref.cpp @@ -5,12 +5,20 @@ * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ + +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wexit-time-destructors" +#endif + #include "catch_stringref.h" #include <ostream> #include <cassert> #include <cstring> + + namespace Catch { auto getEmptyStringRef() -> StringRef { @@ -160,3 +168,7 @@ namespace Catch { } } // namespace Catch + +#if defined(__clang__) +# pragma clang diagnostic pop +#endif |