]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Fix warning: "assert" redefined
authorWolfgang Denk <wd@denx.de>
Fri, 9 Sep 2011 22:31:11 +0000 (00:31 +0200)
committerWolfgang Denk <wd@denx.de>
Fri, 9 Sep 2011 23:10:19 +0000 (01:10 +0200)
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@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
include/bedbug/bedbug.h

index 471215ee02371985f3c9192594a25a30625a6644..0c5d687f83e5e7fc3a548cdb10d7244ceb7dd1a8 100644 (file)
@@ -21,8 +21,6 @@
 #endif
 #endif
 
-#define assert( condition ) if( (condition) ) _exit(0)
-
 #endif /* _BEDBUG_H */