mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-07 13:39:43 +08:00
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.
This commit is contained in:
parent
c0852af056
commit
172dc89237
@ -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. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user