Move tentative callback definitions into CTEST_DATA and remove -Wredundant-decls pragmas

This commit is contained in:
Andrew Eckel 2018-03-28 15:57:32 -04:00 committed by Bas van den Berg
parent 4ff744cc25
commit a0d3adb693

View File

@ -108,10 +108,8 @@ CTEST_IMPL_DIAG_POP()
#define CTEST_DATA(sname) \ #define CTEST_DATA(sname) \
struct CTEST_IMPL_DATA_SNAME(sname); \ struct CTEST_IMPL_DATA_SNAME(sname); \
CTEST_IMPL_DIAG_PUSH_IGNORED(redundant-decls) \
static void (*CTEST_IMPL_SETUP_FPNAME(sname))(struct CTEST_IMPL_DATA_SNAME(sname)*); \ static void (*CTEST_IMPL_SETUP_FPNAME(sname))(struct CTEST_IMPL_DATA_SNAME(sname)*); \
static void (*CTEST_IMPL_TEARDOWN_FPNAME(sname))(struct CTEST_IMPL_DATA_SNAME(sname)*); \ static void (*CTEST_IMPL_TEARDOWN_FPNAME(sname))(struct CTEST_IMPL_DATA_SNAME(sname)*); \
CTEST_IMPL_DIAG_POP() \
struct CTEST_IMPL_DATA_SNAME(sname) struct CTEST_IMPL_DATA_SNAME(sname)
#define CTEST_IMPL_CTEST(sname, tname, tskip) \ #define CTEST_IMPL_CTEST(sname, tname, tskip) \