Skip to content

Commit

Permalink
build: disable -Wenum-constexpr-conversion with clang 18
Browse files Browse the repository at this point in the history
Refs: #5300
Change-Id: Ia47d73479aaaa8799efa3d5b08cf1b50b61237b6
  • Loading branch information
Pesa committed Jan 14, 2024
1 parent 4b1921f commit afcf75d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .waf-tools/default-compiler-flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ def getGeneralFlags(self, conf):
elif Utils.unversioned_sys_platform() == 'freebsd':
# Bug #4790
flags['CXXFLAGS'] += [['-isystem', '/usr/local/include']]
if self.getCompilerVersion(conf) >= (18, 0, 0):
# Bug #5300
flags['CXXFLAGS'] += ['-Wno-enum-constexpr-conversion']
return flags

__cxxFlags = [
Expand Down

0 comments on commit afcf75d

Please sign in to comment.