From: Wolfgang Denk Date: Fri, 9 Sep 2011 22:31:11 +0000 (+0200) Subject: Fix warning: "assert" redefined X-Git-Tag: v2025.01-rc5-pxa1908~19052 X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/git-favicon.png?a=commitdiff_plain;h=5ae0dea3e8659a79d0284647341af2bfc349fecf;p=u-boot.git Fix warning: "assert" redefined 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 Cc: Simon Glass Acked-by: Simon Glass --- diff --git a/include/bedbug/bedbug.h b/include/bedbug/bedbug.h index 471215ee02..0c5d687f83 100644 --- a/include/bedbug/bedbug.h +++ b/include/bedbug/bedbug.h @@ -21,8 +21,6 @@ #endif #endif -#define assert( condition ) if( (condition) ) _exit(0) - #endif /* _BEDBUG_H */