From 06784b41cc38cb75f7f980dcca003daa9ec9832d Mon Sep 17 00:00:00 2001 From: Davide Pesavento Date: Sat, 11 Nov 2023 18:10:43 -0500 Subject: [PATCH] build: disable `-Wnon-virtual-dtor` compiler warning See also named-data/NFD@0a05f7aea6e56a32139a6271de1f98536153a86a Change-Id: I8926b31bc8757684b939e5e41e80e196e644b7c6 --- .waf-tools/default-compiler-flags.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.waf-tools/default-compiler-flags.py b/.waf-tools/default-compiler-flags.py index 4aa9e9b..4e09a82 100644 --- a/.waf-tools/default-compiler-flags.py +++ b/.waf-tools/default-compiler-flags.py @@ -128,7 +128,11 @@ class CompilerFlags: def getGeneralFlags(self, conf): """Get dict of CXXFLAGS, LINKFLAGS, and DEFINES that are always needed""" - return {'CXXFLAGS': [], 'LINKFLAGS': [], 'DEFINES': []} + return { + 'CXXFLAGS': [], + 'LINKFLAGS': [], + 'DEFINES': ['BOOST_ASIO_NO_DEPRECATED', 'BOOST_FILESYSTEM_NO_DEPRECATED'], + } def getDebugFlags(self, conf): """Get dict of CXXFLAGS, LINKFLAGS, and DEFINES that are needed only in debug mode""" @@ -158,7 +162,6 @@ class GccClangCommonFlags(CompilerFlags): '-Wpedantic', '-Wenum-conversion', '-Wextra-semi', - '-Wnon-virtual-dtor', '-Wno-unused-parameter', ] __linkFlags = ['-Wl,-O1']