build: disable -Wenum-constexpr-conversion with clang 18
Refs: #5300
Change-Id: If906294dfa18aa5ce37a07b14a1bcc7abd105cd0
diff --git a/.waf-tools/default-compiler-flags.py b/.waf-tools/default-compiler-flags.py
index 4e09a82..82632d6 100644
--- a/.waf-tools/default-compiler-flags.py
+++ b/.waf-tools/default-compiler-flags.py
@@ -222,6 +222,9 @@
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 = [