]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3991] Updated C casts
authorFrancis Dupont <fdupont@isc.org>
Tue, 26 May 2026 08:55:11 +0000 (10:55 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 27 May 2026 20:03:02 +0000 (22:03 +0200)
src/lib/dns/rdata.cc
src/lib/dns/tests/rdata_unittest.cc

index 40765a455155f6a78d9ea976af742a607262fe59..69619962e74fadb4ed6e7b776580ba8acb01df18 100644 (file)
@@ -333,7 +333,7 @@ Generic::toText() const {
     ostringstream oss;
 
     oss << "\\# " << impl_->data_.size() << " ";
-    (void)oss.fill('0');
+    static_cast<void>(oss.fill('0'));
     oss << right << hex;
     for_each(impl_->data_.begin(), impl_->data_.end(), UnknownRdataDumper(oss));
 
index c562fe9b7319edaacf65c50f838248683689759b..1c5053f701b8d43465d07c3a14ecc00c77f86ee7 100644 (file)
@@ -256,7 +256,7 @@ Rdata_Unknown_Test::getLongestRdataTxt() {
     ostringstream oss;
 
     oss << "\\# " << MAX_RDLENGTH << " ";
-    (void)oss.fill('0');
+    static_cast<void>(oss.fill('0'));
     oss << right << hex;
     for (unsigned i = 0; i < MAX_RDLENGTH; i++) {
         oss << setw(2) << (i & 0xff);