mirror of
https://github.com/darlinghq/ctest.git
synced 2024-12-04 18:46:27 +00:00
Move tentative callback definitions into CTEST_DATA and remove -Wredundant-decls pragmas
This commit is contained in:
parent
4ff744cc25
commit
a0d3adb693
2
ctest.h
2
ctest.h
@ -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) \
|
||||||
|
Loading…
Reference in New Issue
Block a user