diff options
Diffstat (limited to 'navit/debug.c')
-rw-r--r-- | navit/debug.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/navit/debug.c b/navit/debug.c index e46637cb2..9c615f839 100644 --- a/navit/debug.c +++ b/navit/debug.c @@ -472,6 +472,9 @@ void debug_dump_mallocs(void) { } } + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wframe-address" // We know what we are doing here, suppress warning void *debug_malloc(const char *where, int line, const char *func, int size) { struct malloc_head *head; struct malloc_tail *tail; @@ -508,7 +511,7 @@ void *debug_malloc(const char *where, int line, const char *func, int size) { tail->magic=0xdeadbef0; return head; } - +#pragma GCC diagnostic pop void *debug_malloc0(const char *where, int line, const char *func, int size) { void *ret=debug_malloc(where, line, func, size); |