diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2021-08-05 09:14:23 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2021-08-05 09:14:23 +0100 |
commit | 7ece26f7f86c099d0e483a749dbe77db73b2cb9c (patch) | |
tree | 099761245db363e2edf848836272f400352dea2b /test.c | |
parent | 8811b6fceb38fc379dfc0877fdffe5493d0ff8b1 (diff) | |
download | pack-7ece26f7f86c099d0e483a749dbe77db73b2cb9c.tar.gz pack-7ece26f7f86c099d0e483a749dbe77db73b2cb9c.tar.xz pack-7ece26f7f86c099d0e483a749dbe77db73b2cb9c.zip |
explicitly cast printf %p params to (void *)
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -39,7 +39,7 @@ struct test { #define CHECK_PACK(dest, fmt, ...) do { \ enum pack_status CHECK_PACK_s = pack(dest, sizeof (dest), fmt, __VA_ARGS__); \ if (CHECK_PACK_s != PACK_OK) { \ - printf(__FILE__ ":%d pack(%p, %zu, " #fmt ", ...) -> %s (%d)\n", __LINE__, dest, sizeof (dest), pack_strerror(CHECK_PACK_s), CHECK_PACK_s); \ + printf(__FILE__ ":%d pack(%p, %zu, " #fmt ", ...) -> %s (%d)\n", __LINE__, (void *)(dest), sizeof (dest), pack_strerror(CHECK_PACK_s), CHECK_PACK_s); \ return false; \ } \ } while (0) |