mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-10-19 05:13:05 +08:00
Variables used in Fixture tests should be static
Gets rid of warnings about extern with clang's -Weverything
This commit is contained in:
@ -22,14 +22,13 @@ TEST_TEAR_DOWN(UnityFixture)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
int my_int;
|
static int* pointer1 = 0;
|
||||||
int* pointer1 = 0;
|
static int* pointer2 = (int*)2;
|
||||||
int* pointer2 = (int*)2;
|
static int* pointer3 = (int*)3;
|
||||||
int* pointer3 = (int*)3;
|
static int int1;
|
||||||
int int1;
|
static int int2;
|
||||||
int int2;
|
static int int3;
|
||||||
int int3;
|
static int int4;
|
||||||
int int4;
|
|
||||||
|
|
||||||
TEST(UnityFixture, PointerSetting)
|
TEST(UnityFixture, PointerSetting)
|
||||||
{
|
{
|
||||||
@ -112,8 +111,8 @@ TEST(UnityFixture, CallocFillsWithZero)
|
|||||||
free(m);
|
free(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
char *p1;
|
static char *p1;
|
||||||
char *p2;
|
static char *p2;
|
||||||
|
|
||||||
TEST(UnityFixture, PointerSet)
|
TEST(UnityFixture, PointerSet)
|
||||||
{
|
{
|
||||||
@ -143,10 +142,10 @@ TEST(UnityFixture, FreeNULLSafety)
|
|||||||
|
|
||||||
TEST_GROUP(UnityCommandOptions);
|
TEST_GROUP(UnityCommandOptions);
|
||||||
|
|
||||||
int savedVerbose;
|
static int savedVerbose;
|
||||||
unsigned int savedRepeat;
|
static unsigned int savedRepeat;
|
||||||
const char* savedName;
|
static const char* savedName;
|
||||||
const char* savedGroup;
|
static const char* savedGroup;
|
||||||
|
|
||||||
TEST_SETUP(UnityCommandOptions)
|
TEST_SETUP(UnityCommandOptions)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user