vx800: Silence clang warnings.
I have no such board to check the real fixes but this board shouldn't block benefits for the rest of the tree. Change-Id: I9e9d4af1b360bcf0099ac2901b08f7fcd7569097 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/7681 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
parent
29b8a0976f
commit
8e688b3d74
|
@ -20,6 +20,14 @@
|
||||||
#include <spd.h>
|
#include <spd.h>
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
/* Silence clang warnings via pragmas to avoid the problems in this file
|
||||||
|
blocking analyzes for the rest of the tree. */
|
||||||
|
#pragma clang diagnostic ignored "-Wsometimes-uninitialized"
|
||||||
|
#pragma clang diagnostic ignored "-Wconstant-logical-operand"
|
||||||
|
#pragma clang diagnostic ignored "-Warray-bounds"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if CONFIG_DEBUG_RAM_SETUP
|
#if CONFIG_DEBUG_RAM_SETUP
|
||||||
#define PRINT_DEBUG_MEM(x) print_debug(x)
|
#define PRINT_DEBUG_MEM(x) print_debug(x)
|
||||||
#define PRINT_DEBUG_MEM_HEX8(x) print_debug_hex8(x)
|
#define PRINT_DEBUG_MEM_HEX8(x) print_debug_hex8(x)
|
||||||
|
|
Loading…
Reference in New Issue