From c30730faf63e75c1bda73cc3161e5f8dc38de7b1 Mon Sep 17 00:00:00 2001 From: Mark VanderVoord Date: Wed, 3 Jul 2019 15:07:44 -0400 Subject: [PATCH] cleanup warning. --- src/unity.h | 2 -- src/unity_internals.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/unity.h b/src/unity.h index af2b549..9e26067 100644 --- a/src/unity.h +++ b/src/unity.h @@ -338,7 +338,6 @@ int suiteTearDown(int num_failures); #define TEST_ASSERT_NOT_EQUAL(expected, actual) UNITY_TEST_ASSERT(((expected) != (actual)), __LINE__, " Expected Not-Equal") #endif #ifdef UNITY_SHORTHAND_AS_NONE -const char UnityStrErrShorthand[]; #define TEST_ASSERT_EQUAL(expected, actual) UNITY_TEST_FAIL(__LINE__, UnityStrErrShorthand) #define TEST_ASSERT_NOT_EQUAL(expected, actual) UNITY_TEST_FAIL(__LINE__, UnityStrErrShorthand) #endif @@ -569,7 +568,6 @@ const char UnityStrErrShorthand[]; #define TEST_ASSERT_NOT_EQUAL_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT(((expected) != (actual)), __LINE__, message) #endif #ifdef UNITY_SHORTHAND_AS_NONE -const char UnityStrErrShorthand[]; #define TEST_ASSERT_EQUAL_MESSAGE(expected, actual, message) UNITY_TEST_FAIL(__LINE__, UnityStrErrShorthand) #define TEST_ASSERT_NOT_EQUAL_MESSAGE(expected, actual, message) UNITY_TEST_FAIL(__LINE__, UnityStrErrShorthand) #endif diff --git a/src/unity_internals.h b/src/unity_internals.h index c2c5fa6..a3f39ca 100644 --- a/src/unity_internals.h +++ b/src/unity_internals.h @@ -679,6 +679,7 @@ extern const char UnityStrIgnore[]; extern const char UnityStrErrFloat[]; extern const char UnityStrErrDouble[]; extern const char UnityStrErr64[]; +extern const char UnityStrErrShorthand[]; /*------------------------------------------------------- * Test Running Macros