X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=opt%2Fdlmalloc%2Fdlmalloc.c;h=865b5b95afa46c04084dc241ceff38589d160b17;hp=e0bebcdff03539b030fe03da8b88ce4c259208f6;hb=3a988bf47bda2322d7759d3c4518c03e0ef98ba4;hpb=56ece6bba2a8516d3a4fa881689df66bca5284d2 diff --git a/opt/dlmalloc/dlmalloc.c b/opt/dlmalloc/dlmalloc.c index e0bebcd..865b5b9 100644 --- a/opt/dlmalloc/dlmalloc.c +++ b/opt/dlmalloc/dlmalloc.c @@ -835,6 +835,8 @@ extern "C" { #define dlbulk_free bulk_free #endif /* USE_DL_PREFIX */ +#if 0 // Redeclaration warnings as PDCLib already declares these in + /* malloc(size_t n) Returns a pointer to a newly allocated chunk of at least n bytes, or @@ -891,6 +893,8 @@ DLMALLOC_EXPORT void* dlcalloc(size_t, size_t); */ DLMALLOC_EXPORT void* dlrealloc(void*, size_t); +#endif + /* realloc_in_place(void* p, size_t n) Resizes the space allocated for p to size n, only if this can be @@ -3836,7 +3840,7 @@ static void* mmap_alloc(mstate m, size_t nb) { /* Realloc using mmap */ static mchunkptr mmap_resize(mstate m, mchunkptr oldp, size_t nb, int flags) { size_t oldsize = chunksize(oldp); - flags = flags; /* placate people compiling -Wunused */ + (void) flags; if (is_small(nb)) /* Can't shrink mmap regions below small size */ return 0; /* Keep old chunk if big enough but not too big */ @@ -6262,4 +6266,4 @@ int main( void ) return TEST_RESULTS; } -#endif \ No newline at end of file +#endif