Skip to content

os: backtrace: Fix -Wincompatible-pointer-types compiler error on 32-bit targets

Doug Johnson requested to merge dougvj/xserver:master into master
../os/backtrace.c: In function ‘print_registers’:
../os/backtrace.c:94:52: error: passing argument 3 of ‘_ULarm_get_reg’ from incompatible pointer type [-Wincompatible-pointer-types]
   94 |         ret = unw_get_reg(&cursor, regs[i].regnum, &val);
      |                                                    ^~~~
      |                                                    |
      |                                                    uint64_t * {aka long long unsigned int *}

Switched to libunwind's un_word_t type and PRIxPTR fprintf fmt specification

Merge request reports

Loading