summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2014-12-07 12:53:07 +0100
committerVladimir Serbinenko <phcoder@gmail.com>2014-12-07 14:01:28 +0100
commit8e688b3d742ff02eeac1e109e0400264cb20175f (patch)
treef0e63d88d0c378576dd1b928356b8a317dfffeda
parent29b8a0976f3def83d88d78b04a84834a9b1a7886 (diff)
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>
-rw-r--r--src/northbridge/via/vx800/raminit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/northbridge/via/vx800/raminit.c b/src/northbridge/via/vx800/raminit.c
index 058337c66e..6d58f785d3 100644
--- a/src/northbridge/via/vx800/raminit.c
+++ b/src/northbridge/via/vx800/raminit.c
@@ -20,6 +20,14 @@
#include <spd.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
#define PRINT_DEBUG_MEM(x) print_debug(x)
#define PRINT_DEBUG_MEM_HEX8(x) print_debug_hex8(x)