mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Suppress empty-variadic macros warning under GCC
This commit is contained in:
parent
e9caeb7d0b
commit
e601a5dc4f
@ -9,6 +9,13 @@
|
|||||||
#ifndef TWOBLUECUBES_CATCH_PREPROCESSOR_HPP_INCLUDED
|
#ifndef TWOBLUECUBES_CATCH_PREPROCESSOR_HPP_INCLUDED
|
||||||
#define TWOBLUECUBES_CATCH_PREPROCESSOR_HPP_INCLUDED
|
#define TWOBLUECUBES_CATCH_PREPROCESSOR_HPP_INCLUDED
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__GNUC__)
|
||||||
|
// We need to silence "empty __VA_ARGS__ warning", and using just _Pragma does not work
|
||||||
|
#pragma GCC system_header
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define CATCH_RECURSION_LEVEL0(...) __VA_ARGS__
|
#define CATCH_RECURSION_LEVEL0(...) __VA_ARGS__
|
||||||
#define CATCH_RECURSION_LEVEL1(...) CATCH_RECURSION_LEVEL0(CATCH_RECURSION_LEVEL0(CATCH_RECURSION_LEVEL0(__VA_ARGS__)))
|
#define CATCH_RECURSION_LEVEL1(...) CATCH_RECURSION_LEVEL0(CATCH_RECURSION_LEVEL0(CATCH_RECURSION_LEVEL0(__VA_ARGS__)))
|
||||||
#define CATCH_RECURSION_LEVEL2(...) CATCH_RECURSION_LEVEL1(CATCH_RECURSION_LEVEL1(CATCH_RECURSION_LEVEL1(__VA_ARGS__)))
|
#define CATCH_RECURSION_LEVEL2(...) CATCH_RECURSION_LEVEL1(CATCH_RECURSION_LEVEL1(CATCH_RECURSION_LEVEL1(__VA_ARGS__)))
|
||||||
|
Loading…
Reference in New Issue
Block a user