1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-25 17:31:36 +01:00

Fixed initialization of data structure by just doing it manually instead of statically (goodbye compiler warnings!)

This commit is contained in:
Mark VanderVoord
2014-03-07 15:17:25 -05:00
parent 291c2980e0
commit f1c778e100
18 changed files with 21 additions and 18 deletions

View File

@@ -14,7 +14,7 @@
#define UNITY_SKIP_EXECUTION { if ((Unity.CurrentTestFailed != 0) || (Unity.CurrentTestIgnored != 0)) {return;} }
#define UNITY_PRINT_EOL { UNITY_OUTPUT_CHAR('\n'); }
struct _Unity Unity = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , {{{ 0 }}} };
struct _Unity Unity;
const char* UnityStrNull = "NULL";
const char* UnityStrSpacer = ". ";
@@ -1115,6 +1115,9 @@ void UnityDefaultTestRun(UnityTestFunction Func, const char* FuncName, const int
//-----------------------------------------------
void UnityBegin(void)
{
Unity.TestFile = NULL;
Unity.CurrentTestName = NULL;
Unity.CurrentTestLineNumber = 0;
Unity.NumberOfTests = 0;
Unity.TestFailures = 0;
Unity.TestIgnores = 0;