[coreboot-gerrit] Patch set updated for coreboot: d4ce1ca romcc.c: Suppress warning about unused function.

Edward O'Callaghan (eocallaghan@alterapraxis.com) gerrit at coreboot.org
Sun Mar 16 07:36:37 CET 2014


Edward O'Callaghan (eocallaghan at alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5273

-gerrit

commit d4ce1ca1f87031233dd97130873d2b60d69c11b7
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Thu Feb 20 19:37:42 2014 +1100

    romcc.c: Suppress warning about unused function.
    
    GCC suppresses warnings about unused static functions if they are
    inline, however Clang only does this for header files. Add attribute to
    suppress unused function warning on Clang.
    
    Change-Id: Ia230beba3f6367237838d9b3d90536459e1d52cb
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
---
 util/romcc/romcc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/util/romcc/romcc.c b/util/romcc/romcc.c
index fb6a5e1..d6317f1 100644
--- a/util/romcc/romcc.c
+++ b/util/romcc/romcc.c
@@ -5648,6 +5648,7 @@ static struct type *invalid_type(struct compile_state *state, struct type *type)
 
 #define MASK_UCHAR(X)    ((X) & ((ulong_t)0xff))
 #define MASK_USHORT(X)   ((X) & (((ulong_t)1 << (SIZEOF_SHORT)) - 1))
+static inline ulong_t mask_uint(ulong_t x) __attribute__((unused));
 static inline ulong_t mask_uint(ulong_t x)
 {
 	if (SIZEOF_INT < SIZEOF_LONG) {



More information about the coreboot-gerrit mailing list