Skip to content

Commit 0334ac5

Browse files
committed
[#3991] Updated C casts
1 parent 6131956 commit 0334ac5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib/dns/rdata.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ Generic::toText() const {
333333
ostringstream oss;
334334

335335
oss << "\\# " << impl_->data_.size() << " ";
336-
(void)oss.fill('0');
336+
static_cast<void>(oss.fill('0'));
337337
oss << right << hex;
338338
for_each(impl_->data_.begin(), impl_->data_.end(), UnknownRdataDumper(oss));
339339

src/lib/dns/tests/rdata_unittest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ Rdata_Unknown_Test::getLongestRdataTxt() {
256256
ostringstream oss;
257257

258258
oss << "\\# " << MAX_RDLENGTH << " ";
259-
(void)oss.fill('0');
259+
static_cast<void>(oss.fill('0'));
260260
oss << right << hex;
261261
for (unsigned i = 0; i < MAX_RDLENGTH; i++) {
262262
oss << setw(2) << (i & 0xff);

0 commit comments

Comments
 (0)