From b649b85917f3eaa8deaac0e9a9b79e28dec2c9fc Mon Sep 17 00:00:00 2001 From: Brad House Date: Wed, 3 Jul 2024 10:55:49 -0400 Subject: [PATCH] tests: fix compile warning --- test/ares-test-internal.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/ares-test-internal.cc b/test/ares-test-internal.cc index 74b10d92..f4f84ad0 100644 --- a/test/ares-test-internal.cc +++ b/test/ares-test-internal.cc @@ -783,10 +783,12 @@ TEST_F(LibraryTest, DNSRecord) { /* TODO */ break; case ARES_DATATYPE_BINP: - ares__buf_append_byte(printmsg, '"'); - size_t templen; - ares__buf_append_str(printmsg, (const char *)ares_dns_rr_get_bin(rr, keys[k], &templen)); - ares__buf_append_byte(printmsg, '"'); + { + ares__buf_append_byte(printmsg, '"'); + size_t templen; + ares__buf_append_str(printmsg, (const char *)ares_dns_rr_get_bin(rr, keys[k], &templen)); + ares__buf_append_byte(printmsg, '"'); + } break; case ARES_DATATYPE_ABINP: for (size_t a=0; a