From 816767b4c2927e21ff02fd740499a8620da98f4d Mon Sep 17 00:00:00 2001 From: Davide Pesavento Date: Tue, 17 Oct 2023 15:40:22 -0400 Subject: [PATCH] build: disable `-Wnon-virtual-dtor` compiler warning See also named-data/NFD@0a05f7aea6e56a32139a6271de1f98536153a86a Change-Id: If93d766fa8ee2b0cb6a0eb8ff9febc2dc0a4cac0 --- .waf-tools/default-compiler-flags.py | 1 - tests/chunks/consumer.t.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.waf-tools/default-compiler-flags.py b/.waf-tools/default-compiler-flags.py index 4aa9e9b..7746db9 100644 --- a/.waf-tools/default-compiler-flags.py +++ b/.waf-tools/default-compiler-flags.py @@ -158,7 +158,6 @@ def getGeneralFlags(self, conf): '-Wpedantic', '-Wenum-conversion', '-Wextra-semi', - '-Wnon-virtual-dtor', '-Wno-unused-parameter', ] __linkFlags = ['-Wl,-O1'] diff --git a/tests/chunks/consumer.t.cpp b/tests/chunks/consumer.t.cpp index 126f13a..b1231dc 100644 --- a/tests/chunks/consumer.t.cpp +++ b/tests/chunks/consumer.t.cpp @@ -125,7 +125,7 @@ BOOST_AUTO_TEST_CASE(OutOfOrderData) BOOST_CHECK(output.is_equal(testStrings[2])); } -class PipelineInterestsDummy : public PipelineInterests +class PipelineInterestsDummy final : public PipelineInterests { public: using PipelineInterests::PipelineInterests;