diff options
author | Tom Tromey <tromey@adacore.com> | 2022-05-18 09:55:00 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-06-02 09:04:45 -0600 |
commit | cec000ad603ea768f5c1a6cf032770eb2d468337 (patch) | |
tree | 4826a4c568df34962ef706441b1ff9652e2927a2 /gdb/guile | |
parent | ddfc4ef12441bef95ea0bf0a2fb68fe58e24440a (diff) | |
download | binutils-gdb-cec000ad603ea768f5c1a6cf032770eb2d468337.tar.gz |
ODR warning for "enum string_repr_result"
"enum string_repr_result" is defined in multiple .c files, causing ODR
warnings. This patch renames the types.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=22395
Diffstat (limited to 'gdb/guile')
-rw-r--r-- | gdb/guile/scm-pretty-print.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/guile/scm-pretty-print.c b/gdb/guile/scm-pretty-print.c index 2bb63e849d1..e2bc19820d7 100644 --- a/gdb/guile/scm-pretty-print.c +++ b/gdb/guile/scm-pretty-print.c @@ -31,7 +31,7 @@ /* Return type of print_string_repr. */ -enum string_repr_result +enum guile_string_repr_result { /* The string method returned None. */ STRING_REPR_NONE, @@ -638,7 +638,7 @@ ppscm_print_exception_unless_memory_error (SCM exception, /* Helper for gdbscm_apply_val_pretty_printer which calls to_string and formats the result. */ -static enum string_repr_result +static enum guile_string_repr_result ppscm_print_string_repr (SCM printer, enum display_hint hint, struct ui_file *stream, int recurse, const struct value_print_options *options, @@ -647,7 +647,7 @@ ppscm_print_string_repr (SCM printer, enum display_hint hint, { struct value *replacement = NULL; SCM str_scm; - enum string_repr_result result = STRING_REPR_ERROR; + enum guile_string_repr_result result = STRING_REPR_ERROR; str_scm = ppscm_pretty_print_one_value (printer, &replacement, gdbarch, language); @@ -963,7 +963,7 @@ gdbscm_apply_val_pretty_printer (const struct extension_language_defn *extlang, SCM val_obj = SCM_BOOL_F; enum display_hint hint; enum ext_lang_rc result = EXT_LANG_RC_NOP; - enum string_repr_result print_result; + enum guile_string_repr_result print_result; if (value_lazy (value)) value_fetch_lazy (value); |