util: Fix pointer to integer conversion error when using libunwind

../src/util/u_debug_stack.c:97:20: error: incompatible pointer to integer conversion assigning to 'unw_word_t' (aka 'unsigned long') from 'void *' [-Werror,-Wint-conversion]
   pip.unwind_info = NULL;
                   ^ ~~~~
1 error generated.

Fixes: 70c272004f "gallium/util: libunwind support"
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4094

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8507>
This commit is contained in:
Jeremy Huddleston Sequoia 2021-01-14 10:16:15 -08:00 committed by Marge Bot
parent 00944f80e2
commit 08ac7b52e7
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ debug_backtrace_capture(struct debug_stack_frame *backtrace,
unw_proc_info_t pip;
unsigned i = 0;
pip.unwind_info = NULL;
pip.unwind_info = 0;
unw_getcontext(&context);
unw_init_local(&cursor, &context);