From: Tom Tromey Date: Tue, 17 Apr 2018 19:51:22 +0000 (-0600) Subject: Make c_type_print_varspec_suffix static X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc8453a7bb617a5f14a465516f9f87c2ab6e05d5;p=binutils-gdb.git Make c_type_print_varspec_suffix static I noticed that c_type_print_varspec_suffix is only called from c-typeprint.c, so this patch makes it "static". gdb/ChangeLog 2018-06-01 Tom Tromey * typeprint.h (c_type_print_varspec_suffix): Don't declare. * c-typeprint.c (c_type_print_varspec_suffix): Now static. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 37656ad26f6..1eae1aef1b9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-06-01 Tom Tromey + + * typeprint.h (c_type_print_varspec_suffix): Don't declare. + * c-typeprint.c (c_type_print_varspec_suffix): Now static. + 2018-06-01 Alan Hayward * aarch64-tdep.c (aarch64_sve_register_names): New const diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index cb793f0770d..31ff1707199 100644 --- a/gdb/c-typeprint.c +++ b/gdb/c-typeprint.c @@ -50,6 +50,10 @@ enum access_specifier s_protected }; +static void c_type_print_varspec_suffix (struct type *, struct ui_file *, int, + int, int, + const struct type_print_options *); + static void c_type_print_varspec_prefix (struct type *, struct ui_file *, int, int, int, @@ -716,7 +720,7 @@ remove_qualifiers (char *qid) needed after the variable name (to describe its type). Args work like c_type_print_varspec_prefix. */ -void +static void c_type_print_varspec_suffix (struct type *type, struct ui_file *stream, int show, int passed_a_ptr, diff --git a/gdb/typeprint.h b/gdb/typeprint.h index 895eebd50ab..74006b3058f 100644 --- a/gdb/typeprint.h +++ b/gdb/typeprint.h @@ -120,9 +120,6 @@ private: void print_type_scalar (struct type * type, LONGEST, struct ui_file *); -void c_type_print_varspec_suffix (struct type *, struct ui_file *, int, - int, int, const struct type_print_options *); - void c_type_print_args (struct type *, struct ui_file *, int, enum language, const struct type_print_options *);