From d9aec1a969a9684d303deae53d2c72afdf99e91e Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sat, 30 Jun 2018 07:45:32 +0300 Subject: [PATCH] Eliminate 'GC_DEBUG redefined' compiler warning in smashtest * tests/smash_test.c (GC_DEBUG): Do not define if already done. --- tests/smash_test.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/smash_test.c b/tests/smash_test.c index d591ca2..4ba7be0 100644 --- a/tests/smash_test.c +++ b/tests/smash_test.c @@ -1,7 +1,9 @@ -/* - * Test that overwrite error detection works reasonably. - */ -#define GC_DEBUG +/* Test that overwrite error detection works reasonably. */ + +#ifndef GC_DEBUG +# define GC_DEBUG +#endif + #include "gc.h" #include -- 2.7.4