mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 12:10:59 +00:00
Fix remaining -Wstrict-prototypes warnings
This commit is contained in:
@@ -84,7 +84,7 @@ void unity_testcase_register(test_desc_t* desc);
|
||||
|
||||
#define TEST_CASE(name_, desc_) \
|
||||
static void UNITY_TEST_UID(test_func_) (void); \
|
||||
static void __attribute__((constructor)) UNITY_TEST_UID(test_reg_helper_) () \
|
||||
static void __attribute__((constructor)) UNITY_TEST_UID(test_reg_helper_) (void) \
|
||||
{ \
|
||||
static test_func test_fn_[] = {&UNITY_TEST_UID(test_func_)}; \
|
||||
static test_desc_t UNITY_TEST_UID(test_desc_) = { \
|
||||
@@ -115,7 +115,7 @@ void unity_testcase_register(test_desc_t* desc);
|
||||
|
||||
#define TEST_CASE_MULTIPLE_STAGES(name_, desc_, ...) \
|
||||
UNITY_TEST_FN_SET(__VA_ARGS__); \
|
||||
static void __attribute__((constructor)) UNITY_TEST_UID(test_reg_helper_) () \
|
||||
static void __attribute__((constructor)) UNITY_TEST_UID(test_reg_helper_) (void) \
|
||||
{ \
|
||||
static test_desc_t UNITY_TEST_UID(test_desc_) = { \
|
||||
.name = name_, \
|
||||
@@ -140,7 +140,7 @@ void unity_testcase_register(test_desc_t* desc);
|
||||
|
||||
#define TEST_CASE_MULTIPLE_DEVICES(name_, desc_, ...) \
|
||||
UNITY_TEST_FN_SET(__VA_ARGS__); \
|
||||
static void __attribute__((constructor)) UNITY_TEST_UID(test_reg_helper_) () \
|
||||
static void __attribute__((constructor)) UNITY_TEST_UID(test_reg_helper_) (void) \
|
||||
{ \
|
||||
static test_desc_t UNITY_TEST_UID(test_desc_) = { \
|
||||
.name = name_, \
|
||||
|
Reference in New Issue
Block a user