From 16d1979c3a237f5ab669a6fced12828a9e808ec1 Mon Sep 17 00:00:00 2001 From: mkarlesky Date: Thu, 16 Apr 2009 12:22:44 +0000 Subject: [PATCH] added warning flag to gcc config and eliminated warning related to jmp_buf initialization git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@26 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e --- gcc.yml | 5 ++++- src/unity.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc.yml b/gcc.yml index a935140..dd61681 100644 --- a/gcc.yml +++ b/gcc.yml @@ -5,7 +5,10 @@ compiler: runner_path: 'runners/' build_path: &build_path 'build/' options: - - -c + - '-c' + - '-Wall' + - -std=c99 + - -pedantic includes: prefix: '-I' items: diff --git a/src/unity.c b/src/unity.c index 470d3bf..708ddf1 100644 --- a/src/unity.c +++ b/src/unity.c @@ -12,7 +12,7 @@ struct _Unity Unity = 0, 0, 1e-4f, - 0, + {0}, }; void UnityPrintChar(const char ch)