Eliminate 'GC_DEBUG redefined' compiler warning in smashtest
authorIvan Maidanski <ivmai@mail.ru>
Sat, 30 Jun 2018 04:45:32 +0000 (07:45 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 30 Jun 2018 04:45:32 +0000 (07:45 +0300)
* tests/smash_test.c (GC_DEBUG): Do not define if already done.

tests/smash_test.c

index d591ca2..4ba7be0 100644 (file)
@@ -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 <stdio.h>