summaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2020-07-01 20:49:04 -0700
committerH. Peter Anvin (Intel) <hpa@zytor.com>2020-07-01 20:49:04 -0700
commitb877708a8322b83f4da04834421c0a4b624ef94a (patch)
treedb991bf07eb918a35a5aaa38b0b2495e80bcb928 /asm
parentfc3e4dcc65d08c34b94cb500fd726b8eeca15696 (diff)
downloadnasm-b877708a8322b83f4da04834421c0a4b624ef94a.tar.gz
Change unused -> unused_func to remove special case
The autoconf process automatically generates macros for function attributes, including empty placeholders. Said empty placeholders also propagate automatically into config/unconfig.h for the compilers which don't support autoconf. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Diffstat (limited to 'asm')
-rw-r--r--asm/parser.c2
-rw-r--r--asm/preproc.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/asm/parser.c b/asm/parser.c
index 7c24cc00..47b46ecd 100644
--- a/asm/parser.c
+++ b/asm/parser.c
@@ -234,7 +234,7 @@ static bool parse_braces(decoflags_t *decoflags)
}
}
-static inline unused
+static inline unused_func
const expr *next_expr(const expr *e, const expr **next_list)
{
e++;
diff --git a/asm/preproc.c b/asm/preproc.c
index 1b8ee36b..aded0bec 100644
--- a/asm/preproc.c
+++ b/asm/preproc.c
@@ -345,7 +345,7 @@ static inline bool tok_text_match(const struct Token *a, const struct Token *b)
return a->len == b->len && !memcmp(tok_text(a), tok_text(b), a->len);
}
-static inline unused bool
+static inline unused_func bool
tok_match(const struct Token *a, const struct Token *b)
{
return a->type == b->type && tok_text_match(a, b);
@@ -764,7 +764,7 @@ static const char *unquote_token_cstr(Token *t)
* TOK_STRING tokens.
*/
static Token *quote_any_token(Token *t);
-static inline unused
+static inline unused_func
Token *quote_token(Token *t)
{
if (likely(!tok_is(t, TOK_INTERNAL_STRING)))