romcc.c: Fixes warning about unused function from unused macros.
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 <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/5273 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
5809a7395d
commit
38608937b6
|
@ -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 void_type = { .type = TYPE_VOID };
|
||||||
static struct type char_type = { .type = TYPE_CHAR };
|
static struct type char_type = { .type = TYPE_CHAR };
|
||||||
static struct type uchar_type = { .type = TYPE_UCHAR };
|
static struct type uchar_type = { .type = TYPE_UCHAR };
|
||||||
|
|
Loading…
Reference in New Issue