[U-Boot] [PATCH] Fix warning: "assert" redefined

Wolfgang Denk wd at denx.de
Sat Sep 10 22:37:24 CEST 2011


Dear Wolfgang Denk,

In message <1315607922-7285-1-git-send-email-wd at denx.de> you wrote:
> Commit 21726a7 "Add assert() for debug assertions" caused build
> warnings for many systems:
> 
> In file included from bedbug.c:6:
> /home/wd/git/u-boot/work/include/bedbug/bedbug.h:24:1: warning: "assert" redefined
> In file included from bedbug.c:3:
> /home/wd/git/u-boot/work/include/common.h:144:1: warning: this is the location of the previous definition
> In file included from cmd_bedbug.c:10:
> /home/wd/git/u-boot/work/include/bedbug/bedbug.h:24:1: warning: "assert" redefined
> In file included from cmd_bedbug.c:5:
> /home/wd/git/u-boot/work/include/common.h:144:1: warning: this is the location of the previous definition
> 
> Signed-off-by: Wolfgang Denk <wd at denx.de>
> Cc: Simon Glass <sjg at chromium.org>
> ---
>  include/bedbug/bedbug.h |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
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
I've been programming for (35-9=) 24 years myself,  and  I  find  the
best way to learn a new language is to *read* every example snippet I
can find, with a reference book close by. Eventually, the *rhythm* of
the language starts pounding in my head... and my fluency is close at
hand. That's how I learned Perl, and now I'm one of the drummers. :-)
         -- Randal L. Schwartz in <8cvi6p2tir.fsf at gadget.cscaper.com>


More information about the U-Boot mailing list