From cf81cf6081d1a8c15c477f903d15d7b88f31b686 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 14 Mar 2017 10:25:39 -0400 Subject: Make length_of_subexp static It isn't used anywhere else than the file it's defined in. gdb/ChangeLog: * parse.c (length_of_subexp): Make static. * parser-defs.h (length_of_subexp): Remove. --- gdb/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/parse.c') diff --git a/gdb/parse.c b/gdb/parse.c index 9f89b1e..e6f6805 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -827,7 +827,7 @@ prefixify_expression (struct expression *expr) /* Return the number of exp_elements in the postfix subexpression of EXPR whose operator is at index ENDPOS - 1 in EXPR. */ -int +static int length_of_subexp (struct expression *expr, int endpos) { int oplen, args; -- cgit v1.1