Silence a -Wsign-conversio warning in Clara under GCC

This commit is contained in:
Corentin Jabot 2020-07-08 18:00:24 +02:00 committed by Martin Hořeňovský
parent 392e44ec21
commit 2cd5e70012
1 changed files with 9 additions and 0 deletions

View File

@ -25,12 +25,21 @@
#pragma clang diagnostic ignored "-Wdeprecated"
#endif
#if defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsign-conversion"
#endif
#include <catch2/internal/catch_clara_upstream.hpp>
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
#if defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
// Restore Clara's value for console width, if present
#ifdef CATCH_TEMP_CLARA_CONFIG_CONSOLE_WIDTH