From 38608937b658ae2031b78d274463f3d8712fd95b Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Thu, 20 Feb 2014 19:37:42 +1100 Subject: romcc.c: Fixes warning about unused function from unused macros. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GCC suppresses warnings about unused static functions if they are inline, however Clang only does this for header files. None of these MASK_ declarations are used, so just remove them. Change-Id: Ia230beba3f6367237838d9b3d90536459e1d52cb Signed-off-by: Edward O'Callaghan Reviewed-on: http://review.coreboot.org/5273 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki Reviewed-by: Paul Menzel --- util/romcc/romcc.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'util/romcc/romcc.c') diff --git a/util/romcc/romcc.c b/util/romcc/romcc.c index fb6a5e1..84270bb 100644 --- a/util/romcc/romcc.c +++ b/util/romcc/romcc.c @@ -5646,19 +5646,6 @@ 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) -{ - if (SIZEOF_INT < SIZEOF_LONG) { - ulong_t mask = (1ULL << ((ulong_t)(SIZEOF_INT))) -1; - x &= mask; - } - return x; -} -#define MASK_UINT(X) (mask_uint(X)) -#define MASK_ULONG(X) (X) - static struct type void_type = { .type = TYPE_VOID }; static struct type char_type = { .type = TYPE_CHAR }; static struct type uchar_type = { .type = TYPE_UCHAR }; -- cgit v1.1