mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-06 09:21:26 +01:00
tegra2: fix warning: "assert" redefined
Commit 21726a7 "Add assert() for debug assertions" caused build
warnings for all tegra2 based boards:
clock.c:36:1: warning: "assert" redefined
In file included from clock.c:29:
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>
This commit is contained in:
parent
5fb5e8c5e7
commit
3aa7782ac4
1 changed files with 0 additions and 8 deletions
|
|
@ -28,14 +28,6 @@
|
|||
#include <asm/arch/tegra2.h>
|
||||
#include <common.h>
|
||||
|
||||
#ifdef DEBUG
|
||||
#define assert(x) \
|
||||
({ if (!(x)) printf("Assertion failure '%s' %s line %d\n", \
|
||||
#x, __FILE__, __LINE__); })
|
||||
#else
|
||||
#define assert(x)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Get the oscillator frequency, from the corresponding hardware configuration
|
||||
* field.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue