aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp b/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
index fe5af06f2..4c63c3e88 100644
--- a/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
+++ b/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
@@ -249,6 +249,11 @@ static CXTranslationUnit createTranslationUnit(CXIndex index,
// https://github.com/darlinghq/darling/issues/204
#endif
"-Wno-constant-logical-operand",
+#if CINDEX_VERSION_MAJOR > 0 || CINDEX_VERSION_MINOR >= 64 // Clang 21
+ // QTBUG-141204: Suppress "character-conversion" warnings in Qt: qchar.h:... warning: implicit
+ // conversion from 'const char16_t' to 'char32_t' may change the meaning of the represented code unit.
+ "-Wno-character-conversion",
+#endif
"-x",
"c++" // Treat .h as C++, not C
};