[coreboot-gerrit] New patch to review for coreboot: 08e92b5 vx800: Silence clang warnings.

Vladimir Serbinenko (phcoder@gmail.com) gerrit at coreboot.org
Sun Dec 7 12:54:46 CET 2014


Vladimir Serbinenko (phcoder at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/7681

-gerrit

commit 08e92b5d3560f442441835cfbf34812b3027a974
Author: Vladimir Serbinenko <phcoder at gmail.com>
Date:   Sun Dec 7 12:53:07 2014 +0100

    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 at gmail.com>
---
 src/northbridge/via/vx800/raminit.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/northbridge/via/vx800/raminit.c b/src/northbridge/via/vx800/raminit.c
index 058337c..19726b6 100644
--- a/src/northbridge/via/vx800/raminit.c
+++ b/src/northbridge/via/vx800/raminit.c
@@ -20,6 +20,12 @@
 #include <spd.h>
 #include <delay.h>
 
+/* 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"
+
 #if CONFIG_DEBUG_RAM_SETUP
 #define PRINT_DEBUG_MEM(x)		print_debug(x)
 #define PRINT_DEBUG_MEM_HEX8(x)		print_debug_hex8(x)



More information about the coreboot-gerrit mailing list