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

Edward O'Callaghan (eocallaghan@alterapraxis.com) gerrit at coreboot.org
Fri Feb 21 01:11:25 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 c1f183f28cf0cc59fc96a7d916bef407c7c717ab
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 b045b46..3ac42f7 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