diff options
author | Edward O'Callaghan <eocallaghan@alterapraxis.com> | 2014-02-20 19:37:42 +1100 |
---|---|---|
committer | Alexandru Gagniuc <mr.nuke.me@gmail.com> | 2014-03-17 19:09:49 +0100 |
commit | 38608937b658ae2031b78d274463f3d8712fd95b (patch) | |
tree | 9cf35af93b0d919bc0ce06a028fe246fc8365962 /util/romcc/romcc.c | |
parent | 5809a7395d49122757a0ebdfa120e023ebe876ba (diff) |
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>
Diffstat (limited to 'util/romcc/romcc.c')
-rw-r--r-- | util/romcc/romcc.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/util/romcc/romcc.c b/util/romcc/romcc.c index fb6a5e1c1f..84270bb985 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 }; |