lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #9076] mem: Include stdlib.h to fix build warnings w


From: Axel Lin
Subject: [lwip-devel] [patch #9076] mem: Include stdlib.h to fix build warnings when MEM_LIBC_MALLOC is set
Date: Mon, 8 Aug 2016 06:40:23 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.75 Safari/537.36

URL:
  <http://savannah.nongnu.org/patch/?9076>

                 Summary: mem: Include stdlib.h to fix build warnings when
MEM_LIBC_MALLOC is set
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: axellin
            Submitted on: Mon 08 Aug 2016 06:40:20 AM GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

Fix below build warnings when MEM_LIBC_MALLOC is set:
src/core/mem.c:119:3: warning: implicit declaration of function 'malloc'
[-Wimplicit-function-declaration]
   void* ret = mem_clib_malloc(size + MEM_LIBC_STATSHELPER_SIZE);
   ^
src/core/mem.c:96:25: warning: incompatible implicit declaration of built-in
function 'malloc'
 #define mem_clib_malloc malloc
                         ^
src/core/mem.c:119:15: note: in expansion of macro 'mem_clib_malloc'
   void* ret = mem_clib_malloc(size + MEM_LIBC_STATSHELPER_SIZE);
               ^
src/core/mem.c: In function 'mem_free':
src/core/mem.c:146:3: warning: implicit declaration of function 'free'
[-Wimplicit-function-declaration]
   mem_clib_free(rmem);
   ^
src/core/mem.c:93:23: warning: incompatible implicit declaration of built-in
function 'free'
 #define mem_clib_free free
                       ^
src/core/mem.c:146:3: note: in expansion of macro 'mem_clib_free'
   mem_clib_free(rmem);
   ^




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 08 Aug 2016 06:40:20 AM GMT  Name:
0001-mem-Include-stdlib.h-to-fix-build-warnings-when-MEM_.patch  Size: 2kB  
By: axellin

<http://savannah.nongnu.org/patch/download.php?file_id=38146>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9076>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]