projects
/
platform
/
upstream
/
libgc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0553eb0
)
Eliminate 'GC_DEBUG redefined' compiler warning in smashtest
author
Ivan Maidanski
<ivmai@mail.ru>
Sat, 30 Jun 2018 04:45:32 +0000
(07:45 +0300)
committer
Ivan 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
patch
|
blob
|
history
diff --git
a/tests/smash_test.c
b/tests/smash_test.c
index
d591ca2
..
4ba7be0
100644
(file)
--- 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 <stdio.h>