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: If906294dfa18aa5ce37a07b14a1bcc7abd105cd0
  • Loading branch information
Pesa committed Jan 14, 2024
1 parent 36b78ea commit 0a67556
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 0a67556

Please sign in to comment.