tests: fix compile warning

pull/807/head
Brad House 5 months ago
parent b9d36509f6
commit b649b85917
  1. 10
      test/ares-test-internal.cc

@ -783,10 +783,12 @@ TEST_F(LibraryTest, DNSRecord) {
/* TODO */ /* TODO */
break; break;
case ARES_DATATYPE_BINP: case ARES_DATATYPE_BINP:
ares__buf_append_byte(printmsg, '"'); {
size_t templen; ares__buf_append_byte(printmsg, '"');
ares__buf_append_str(printmsg, (const char *)ares_dns_rr_get_bin(rr, keys[k], &templen)); size_t templen;
ares__buf_append_byte(printmsg, '"'); ares__buf_append_str(printmsg, (const char *)ares_dns_rr_get_bin(rr, keys[k], &templen));
ares__buf_append_byte(printmsg, '"');
}
break; break;
case ARES_DATATYPE_ABINP: case ARES_DATATYPE_ABINP:
for (size_t a=0; a<ares_dns_rr_get_abin_cnt(rr, keys[k]); a++) { for (size_t a=0; a<ares_dns_rr_get_abin_cnt(rr, keys[k]); a++) {

Loading…
Cancel
Save