[coreboot-gerrit] New patch to review for coreboot: a669a1c romcc.c: Suppress warning about unused function.

Edward O'Callaghan (eocallaghan@alterapraxis.com) gerrit at coreboot.org
Thu Feb 20 09:47: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 a669a1c6a3d2f5e22e3e8cf8f2aa2a8e7ef9268a
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