]> git.meshlink.io Git - meshlink/commit
Silence warnings about printing function pointers.
authorGuus Sliepen <guus@meshlink.io>
Sun, 6 Jun 2021 23:00:11 +0000 (01:00 +0200)
committerGuus Sliepen <guus@meshlink.io>
Sun, 6 Jun 2021 23:00:11 +0000 (01:00 +0200)
commit7dcae4737d3c3880d775a569b35002d9498dfda3
tree4d2a0d334a642ec93c98ab9a97ce9a82514c1100
parent7cf15980cbbe138b4bad631365a967867c2341ca
Silence warnings about printing function pointers.

Cast function pointers first to intptr_t, then to void *. This silences
a warning from GCC that we are not actually allowed to print function
pointers using %p, which is not an issue on the platforms we support.
src/meshlink.c