diff options
author | Harald Welte <laforge@osmocom.org> | 2020-10-09 09:37:36 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-10-09 09:55:53 +0200 |
commit | f445150c57ab5205f52ba98924b9e3c9602b2701 (patch) | |
tree | 72e96677e32e8aa01167ddda749c0707abab9e76 /tests/gsm0808 | |
parent | a5218ea9b3a6329a3ce9b56bc1434ca96a0e35aa (diff) |
bssmap_le/bsslap tests: We must use %td for ptrdiff_t printing
Otherwise we get (valid!) format string warnings like these on 32bit
targets:
[ 372s] bssmap_le/bssmap_le_test.c: In function 'test_bssmap_le_enc_dec':
[ 372s] bssmap_le/bssmap_le_test.c:141:15: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=]
[ 372s] printf("[%ld] %s: ERROR: failed to encode pdu\n", (pdu - bssmap_le_test_pdus),
[ 372s] ^
Closes: OS#4786
Change-Id: Ib1c16b8adc5c8c0a2b418db51d12089f9b49a844
Diffstat (limited to 'tests/gsm0808')
0 files changed, 0 insertions, 0 deletions