Skip to content

Commit

Permalink
Ignore redundant-decls warning on MinGW (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMS21 authored and onqtam committed Jun 2, 2019
1 parent ec0d37e commit 8585360
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doctest/parts/doctest_fwd.h
Expand Up @@ -359,7 +359,9 @@ DOCTEST_MSVC_SUPPRESS_WARNING(26444) // Avoid unnamed objects with custom constr
#elif DOCTEST_MSVC
#define DOCTEST_BREAK_INTO_DEBUGGER() __debugbreak()
#elif defined(__MINGW32__)
DOCTEST_GCC_SUPPRESS_WARNING_WITH_PUSH("-Wredundant-decls")
extern "C" __declspec(dllimport) void __stdcall DebugBreak();
DOCTEST_GCC_SUPPRESS_WARNING_POP
#define DOCTEST_BREAK_INTO_DEBUGGER() ::DebugBreak()
#else // linux
#define DOCTEST_BREAK_INTO_DEBUGGER() ((void)0)
Expand Down

0 comments on commit 8585360

Please sign in to comment.