diff options
author | jandegr <jandegr@users.noreply.github.com> | 2019-09-26 21:43:50 +0200 |
---|---|---|
committer | Pierre GRANDIN <pgrandin@users.noreply.github.com> | 2019-09-26 13:43:50 -0600 |
commit | d18dec5ec22551ea9feeb6aedf5c226a6f998fe6 (patch) | |
tree | 6b514f5bfb063701efbb4f15f8c12ad3bd75c1eb /navit/support/glib/gslice.c | |
parent | f304cfc699a73f9c0677d5d3315cd7e3d5daea30 (diff) | |
download | navit-d18dec5ec22551ea9feeb6aedf5c226a6f998fe6.tar.gz |
Fix:android:64 bit and cleanup2 (#877)
https://github.com/navit-gps/navit/pull/877
Diffstat (limited to 'navit/support/glib/gslice.c')
-rw-r--r-- | navit/support/glib/gslice.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/navit/support/glib/gslice.c b/navit/support/glib/gslice.c index 29165bc5a..82394c8b2 100644 --- a/navit/support/glib/gslice.c +++ b/navit/support/glib/gslice.c @@ -34,6 +34,7 @@ #include "gthreadprivate.h" #include "glib.h" #include "galias.h" +#include "fake.h" #ifdef HAVE_UNISTD_H #include <unistd.h> /* sysconf() */ #endif @@ -1265,17 +1266,17 @@ smc_notify_free (void *pointer, found_one = smc_tree_lookup (adress, &real_size); if (!found_one) { - fprintf (stderr, "GSlice: MemChecker: attempt to release non-allocated block: %p size=%" G_GSIZE_FORMAT "\n", pointer, size); +// fprintf (stderr, "GSlice: MemChecker: attempt to release non-allocated block: %p size=%" G_GSIZE_FORMAT "\n", pointer, size); return 0; } if (real_size != size && (real_size || size)) { - fprintf (stderr, "GSlice: MemChecker: attempt to release block with invalid size: %p size=%" G_GSIZE_FORMAT " invalid-size=%" G_GSIZE_FORMAT "\n", pointer, real_size, size); +// fprintf (stderr, "GSlice: MemChecker: attempt to release block with invalid size: %p size=%" G_GSIZE_FORMAT " invalid-size=%" G_GSIZE_FORMAT "\n", pointer, real_size, size); return 0; } if (!smc_tree_remove (adress)) { - fprintf (stderr, "GSlice: MemChecker: attempt to release non-allocated block: %p size=%" G_GSIZE_FORMAT "\n", pointer, size); +// fprintf (stderr, "GSlice: MemChecker: attempt to release non-allocated block: %p size=%" G_GSIZE_FORMAT "\n", pointer, size); return 0; } return 1; /* all fine */ |