ianlancetaylor / libbacktrace

A C library that may be linked into a C/C++ program to produce symbolic backtraces
Other
944 stars 220 forks source link

Fix warnings regarding pointer arithmetics with void * #105

Closed krlmlr closed 1 month ago

krlmlr commented 1 year ago

Compiling with -Wpointer-arith triggers the following warnings:

  pecoff.c:647:37: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  pecoff.c:681:22: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
  pecoff.c:721:45: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
ianlancetaylor commented 1 month ago

Thanks. I committed a version of your change upstream and merged the patch back into this repo in https://github.com/ianlancetaylor/libbacktrace/commit/6ce91a2ef79027df9f2afa501a2e00262b614ffe.