From f56bda283a2f59d370e4a6c3fe140d03b9ec434c Mon Sep 17 00:00:00 2001 From: mvandervoord Date: Sat, 11 Jul 2009 17:57:55 +0000 Subject: [PATCH] - made a minor tweak to initialization of unity structure to avoid silly compiler warnings. git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@37 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e --- src/unity.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/unity.c b/src/unity.c index 708ddf1..8b97977 100644 --- a/src/unity.c +++ b/src/unity.c @@ -2,18 +2,8 @@ #include #include -struct _Unity Unity = -{ - NULL, - NULL, - 0, - 0, - 0, - 0, - 0, - 1e-4f, - {0}, -}; +//rely on how C will fill the rest of the structure with 0's +struct _Unity Unity = { 0 }; void UnityPrintChar(const char ch) {