From 0a67556957fc2ac1f5de44500a7f58b332161e2e Mon Sep 17 00:00:00 2001 From: Davide Pesavento Date: Sat, 13 Jan 2024 21:54:52 -0500 Subject: [PATCH] build: disable -Wenum-constexpr-conversion with clang 18 Refs: #5300 Change-Id: If906294dfa18aa5ce37a07b14a1bcc7abd105cd0 --- .waf-tools/default-compiler-flags.py | 3 +++ 1 file changed, 3 insertions(+) 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 @@ 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 = [