aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-02-13 13:20:22 -0700
committerTom Tromey <tromey@adacore.com>2024-02-14 04:59:35 -0700
commit172dc8923748b76120cf054d5f01b3230859f7b4 (patch)
treeb2eb737c2728cddcfb99306529b09804df8b6c33
parentc0852af0565c7a83e17f1358fac52a68e7047002 (diff)
downloadbinutils-172dc8923748b76120cf054d5f01b3230859f7b4.zip
binutils-172dc8923748b76120cf054d5f01b3230859f7b4.tar.gz
binutils-172dc8923748b76120cf054d5f01b3230859f7b4.tar.bz2
Use typedef in definition of warning_hook
This changes the global 'warning_hook' to use the warning_hook_handler typedef in its definition. This makes it a little easier to change the type, should that be needed.
-rw-r--r--gdb/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index a1aeb10..68aebf3 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -131,7 +131,7 @@ show_pagination_enabled (struct ui_file *file, int from_tty,
/* Warning hook pointer. This has to be 'static' to avoid link
problems with thread-locals on AIX. */
-static thread_local void (*warning_hook) (const char *, va_list);
+static thread_local warning_hook_handler warning_hook;
/* See utils.h. */