diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2022-12-13 00:42:15 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2022-12-16 16:30:18 +0100 |
commit | b96def99168ec3be8459c2ed7148e59c326d778d (patch) | |
tree | dccfd657c1a3a454307bbec41f015da32d97b0d4 /CRT.c | |
parent | b4a4932f1fc53d75d88d8f54906acadfb3651a97 (diff) |
Unwind: use arch generic assignment
The unw_proc_info_t member unwind_info might be of different type
depending on the architecture.
../../CRT.c: In function ‘print_backtrace’:
../../CRT.c:1099:23: error: assignment to ‘unw_word_t’ {aka ‘long unsigned int’} from ‘void *’ makes integer from pointer without a cast [-Werror=int-conversion]
1099 | pip.unwind_info = NULL;
| ^
Diffstat (limited to 'CRT.c')
-rw-r--r-- | CRT.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1096,7 +1096,7 @@ static void print_backtrace(void) { unw_get_proc_name(&cursor, symbolName, sizeof(symbolName), &offset); unw_proc_info_t pip; - pip.unwind_info = NULL; + pip.unwind_info = 0; const char* fname = "?"; const void* ptr = 0; |