aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsayjones.plus.com>2020-05-30 18:51:38 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-05-30 18:51:38 +0100
commit0ee050a84a2986193060a7cf2241e993fbfc4f30 (patch)
tree17ce9c2366c284a48caa7a8013e5df6a81c5c7bc
parentc100a7ab2504f9e6fe6b6d3f9a010a8ea5ed30a3 (diff)
downloadsparse-0ee050a84a2986193060a7cf2241e993fbfc4f30.tar.gz
evaluate: mark evaluate_generic_selection() as static
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> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--evaluate.c2
1 files changed, 1 insertions, 1 deletions
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;