From: Ivan Maidanski Date: Sat, 30 Jun 2018 04:45:32 +0000 (+0300) Subject: Eliminate 'GC_DEBUG redefined' compiler warning in smashtest X-Git-Tag: v8.0.0~92 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9aec1a969a9684d303deae53d2c72afdf99e91e;p=gc Eliminate 'GC_DEBUG redefined' compiler warning in smashtest * tests/smash_test.c (GC_DEBUG): Do not define if already done. --- diff --git a/tests/smash_test.c b/tests/smash_test.c index d591ca2b..4ba7be04 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