Edward O'Callaghan (eocallaghan@alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5273
-gerrit
commit 65ab3d38bcba5285260fad89ab9e13646c998002 Author: Edward O'Callaghan eocallaghan@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@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) {