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

View File

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