* [PATCH] evaluate: mark evaluate_generic_selection() as static
@ 2020-05-30 17:51 Ramsay Jones
2020-05-30 17:58 ` Luc Van Oostenryck
0 siblings, 1 reply; 2+ messages in thread
From: Ramsay Jones @ 2020-05-30 17:51 UTC (permalink / raw)
To: Luc Van Oostenryck; +Cc: Sparse Mailing-list
Commit c100a7ab (add support for _Generic, 2020-05-28) added the
function evaluate_generic_selection() as an external symbol, without
providing an external declaration in a header file. This causes
sparse to issue a warning as part of the 'selfcheck' target.
Since this function does not (currently) need to be an external symbol,
mark it as static.
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---
evaluate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/evaluate.c b/evaluate.c
index 5f2b7d6f..8d2e6869 100644
--- a/evaluate.c
+++ b/evaluate.c
@@ -3280,7 +3280,7 @@ static int type_selection(struct symbol *ctrl, struct symbol *type)
return !type_difference(&c, &t, 0, 0);
}
-struct symbol *evaluate_generic_selection(struct expression *expr)
+static struct symbol *evaluate_generic_selection(struct expression *expr)
{
struct type_expression *map;
struct expression *res;
--
2.26.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-30 17:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-30 17:51 [PATCH] evaluate: mark evaluate_generic_selection() as static Ramsay Jones
2020-05-30 17:58 ` Luc Van Oostenryck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox