aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/memory.c')
-rw-r--r--src/memory.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/memory.c b/src/memory.c
index 90a5dd8..264c235 100644
--- a/src/memory.c
+++ b/src/memory.c
@@ -304,6 +304,10 @@ static guint teco_memory_usage = 0;
*/
#ifdef REPLACE_MALLOC
+#ifndef G_ATOMIC_LOCK_FREE
+#warning "malloc() replacement will be very slow!"
+#endif
+
void * __attribute__((used))
malloc(size_t size)
{