Skip to content

Commit

Permalink
Silence a -Wsign-conversio warning in Clara under GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
Corentin Jabot authored and horenmar committed Jul 9, 2020
1 parent 392e44e commit 2cd5e70
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/catch2/internal/catch_clara.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2cd5e70

Please sign in to comment.