0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-08-08 01:32:08 +00:00
Files
termux-packages/x11-packages/qt-creator/no-enum-constexpr-conversion.patch
2024-08-28 10:15:56 +08:00

18 lines
581 B
Diff

--- a/src/plugins/cppeditor/cppquickfixes.cpp
+++ b/src/plugins/cppeditor/cppquickfixes.cpp
@@ -4371,7 +4371,14 @@
};
using Flag = GenerateGetterSetterOp::GenerateFlag;
constexpr static Flag ColumnFlag[] = {
+#if defined(__clang__) && __clang_major__ >= 16
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wenum-constexpr-conversion"
+#endif
static_cast<Flag>(-1),
+#if defined(__clang__) && __clang_major__ >= 16
+#pragma GCC diagnostic pop
+#endif
Flag::GenerateGetter,
Flag::GenerateSetter,
Flag::GenerateSignal,