Malloc: Fix -Wundef warnings
PATCH 1/1 Malloc: Fix -Wundef warnings
In file included from arch/arm/lib/board.c:43:0:include/malloc.h:490:5: warning: "HAVE_MMAP" is not defined [-Wundef] include/malloc.h:590:5: warning: "HAVE_USR_INCLUDE_MALLOC_H" is not defined [-Wundef] include/malloc.h:757:5: warning: "HAVE_MMAP" is not defined [-Wundef]
--- include/malloc.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
include/malloc.h +3 -3
@@ -487,7 +487,7 @@ do { \***/ #undef HAVE_MREMAP/* Not available for U-Boot */ -#if HAVE_MMAP +#ifdef HAVE_MMAP #include <unistd.h> #include <fcntl.h>
@@ -587,7 +587,7 @@ do { \/* #define HAVE_USR_INCLUDE_MALLOC_H */ -#if HAVE_USR_INCLUDE_MALLOC_H +#ifdef HAVE_USR_INCLUDE_MALLOC_H #include "/usr/include/malloc.h" #else
@@ -754,7 +754,7 @@ struct mallinfo {#ifndef DEFAULT_MMAP_MAX -#if HAVE_MMAP +#ifdef HAVE_MMAP #define DEFAULT_MMAP_MAX (64)#else #define DEFAULT_MMAP_MAX (0)
Signature · 1 line
1.7.9.1
PATCH 1/1 Malloc: Fix -Wundef warnings
Quoted 5 lines · On Thursday 29 March 2012 15:28:15 Marek Vasut wrote:
In file included from
arch/arm/lib/board.c:43:0:include/malloc.h:490:5: warning: "HAVE_MMAP" is not defined [-Wundef]include/malloc.h:590:5: warning: "HAVE_USR_INCLUDE_MALLOC_H" is not defined [-Wundef]include/malloc.h:757:5: warning: "HAVE_MMAP" is not defined [-Wundef]
how much of the tree warns with -Wundef ? with older code bases, i tend to find this sort of a useless flag.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120330/04852750/attachment.pgp>
Wolfgang Denk
AppliedPATCH 1/1 Malloc: Fix -Wundef warnings
In reply to Marek VasutDear Marek Vasut,
Quoted 10 lines · In message <[email protected]> you wrote:
In file included from
arch/arm/lib/board.c:43:0:include/malloc.h:490:5: warning: "HAVE_MMAP" is not defined [-Wundef]include/malloc.h:590:5: warning: "HAVE_USR_INCLUDE_MALLOC_H" is not defined [-Wundef]include/malloc.h:757:5: warning: "HAVE_MMAP" is not defined [-Wundef]Signed-off-by Marek Vasut <[email protected]>Cc Wolfgang Denk <[email protected]>--- include/malloc.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de While most peoples' opinions change, the conviction of their correct- ness never does.