diff options
author | Ramsay Jones <ramsay@ramsayjones.plus.com> | 2020-05-30 18:51:38 +0100 |
---|---|---|
committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-05-30 18:51:38 +0100 |
commit | 0ee050a84a2986193060a7cf2241e993fbfc4f30 (patch) | |
tree | 17ce9c2366c284a48caa7a8013e5df6a81c5c7bc | |
parent | c100a7ab2504f9e6fe6b6d3f9a010a8ea5ed30a3 (diff) | |
download | sparse-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |