diff options
author | Tom Rini <trini@konsulko.com> | 2017-06-16 13:06:27 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-06-23 10:38:05 -0400 |
commit | d62b247d299cb80df4b51534e923762e5a8ec576 (patch) | |
tree | 5528a0eee61def35f27b7f08bb97dcc4962fd2bf /post | |
parent | 3a97763aab781196bcc34e6fbc3eb81c12ccf2eb (diff) | |
download | u-boot-d62b247d299cb80df4b51534e923762e5a8ec576.tar.gz |
post: Fix unused variable warning on lwmon5
The variable syndrome_codes is only used when DEBUG is define, add #if
guards around it in the same style as the rest of the file.
Cc: Stefan Roese <sr@denx.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'post')
-rw-r--r-- | post/cpu/ppc4xx/denali_ecc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/post/cpu/ppc4xx/denali_ecc.c b/post/cpu/ppc4xx/denali_ecc.c index 1190739ae1..ad5e64fbb0 100644 --- a/post/cpu/ppc4xx/denali_ecc.c +++ b/post/cpu/ppc4xx/denali_ecc.c @@ -33,6 +33,7 @@ DECLARE_GLOBAL_DATA_PTR; +#if defined(DEBUG) const static uint8_t syndrome_codes[] = { 0xF4, 0XF1, 0XEC, 0XEA, 0XE9, 0XE6, 0XE5, 0XE3, 0XDC, 0XDA, 0XD9, 0XD6, 0XD5, 0XD3, 0XCE, 0XCB, @@ -44,6 +45,7 @@ const static uint8_t syndrome_codes[] = { 0X1C, 0X1A, 0X19, 0X16, 0X15, 0X13, 0X0E, 0X0B, 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01 }; +#endif #define ECC_START_ADDR 0x10 #define ECC_STOP_ADDR 0x2000 |