From 8c37d7b98a9ddc9abcf953fb16e771cbe5b8afc0 Mon Sep 17 00:00:00 2001 From: Jerry Jacobs Date: Wed, 13 Apr 2016 11:33:57 +0200 Subject: [PATCH] Fix #182, remove redundant function declarations --- src/unity.c | 8 -------- test/Makefile | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/unity.c b/src/unity.c index e281d6a..b398b3f 100644 --- a/src/unity.c +++ b/src/unity.c @@ -67,9 +67,6 @@ const _U_UINT UnitySizeMask[] = #endif }; -void UnityPrintFail(void); -void UnityPrintOk(void); - //----------------------------------------------- // Pretty Printers & Test Result Output Handlers //----------------------------------------------- @@ -1261,8 +1258,6 @@ void UnityIgnore(const char* msg, const UNITY_LINE_TYPE line) //----------------------------------------------- #if defined(UNITY_WEAK_ATTRIBUTE) - void setUp(void); - void tearDown(void); UNITY_WEAK_ATTRIBUTE void setUp(void) { } UNITY_WEAK_ATTRIBUTE void tearDown(void) { } #elif defined(UNITY_WEAK_PRAGMA) @@ -1270,9 +1265,6 @@ void UnityIgnore(const char* msg, const UNITY_LINE_TYPE line) void setUp(void) { } # pragma weak tearDown void tearDown(void) { } -#else - void setUp(void); - void tearDown(void); #endif //----------------------------------------------- void UnityDefaultTestRun(UnityTestFunction Func, const char* FuncName, const int FuncLineNum) diff --git a/test/Makefile b/test/Makefile index ef44540..8ae752c 100644 --- a/test/Makefile +++ b/test/Makefile @@ -3,7 +3,7 @@ ifeq ($(shell uname -s), Darwin) CC = clang endif #DEBUG = -O0 -g -CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror +CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror -Wredundant-decls CFLAGS += $(DEBUG) DEFINES = -D UNITY_OUTPUT_CHAR=putcharSpy -D UNITY_INCLUDE_DOUBLE SRC = ../src/unity.c tests/testunity.c build/testunityRunner.c