Skip to content

Commit

Permalink
build: disable -Wnon-virtual-dtor compiler warning
Browse files Browse the repository at this point in the history
See also named-data/NFD@0a05f7a

Change-Id: I8926b31bc8757684b939e5e41e80e196e644b7c6
  • Loading branch information
Pesa committed Nov 11, 2023
1 parent 42db029 commit 06784b4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .waf-tools/default-compiler-flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ def getCompilerVersion(self, conf):

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"""
Expand Down Expand Up @@ -158,7 +162,6 @@ def getGeneralFlags(self, conf):
'-Wpedantic',
'-Wenum-conversion',
'-Wextra-semi',
'-Wnon-virtual-dtor',
'-Wno-unused-parameter',
]
__linkFlags = ['-Wl,-O1']
Expand Down

0 comments on commit 06784b4

Please sign in to comment.