summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qbs/modules/libclang/functions.js3
-rw-r--r--src/shared/clang/clang_installation.pri3
2 files changed, 6 insertions, 0 deletions
diff --git a/qbs/modules/libclang/functions.js b/qbs/modules/libclang/functions.js
index 99577c3146..4d384d773e 100644
--- a/qbs/modules/libclang/functions.js
+++ b/qbs/modules/libclang/functions.js
@@ -167,6 +167,9 @@ function toolingParameters(llvmConfig)
"-Wcovered-switch-default",
"-Wnon-virtual-dtor",
"-Woverloaded-virtual",
+ "-Wmissing-field-initializers",
+ "-Wno-unknown-warning",
+ "-Wno-unused-command-line-argument",
"-fPIC",
"-pedantic",
"-Wstring-conversion",
diff --git a/src/shared/clang/clang_installation.pri b/src/shared/clang/clang_installation.pri
index 3f4b4fde7c..d4307d4099 100644
--- a/src/shared/clang/clang_installation.pri
+++ b/src/shared/clang/clang_installation.pri
@@ -230,6 +230,9 @@ isEmpty(LLVM_VERSION) {
LLVM_CXXFLAGS ~= s,-Wcovered-switch-default,
LLVM_CXXFLAGS ~= s,-Wnon-virtual-dtor,
LLVM_CXXFLAGS ~= s,-Woverloaded-virtual,
+ LLVM_CXXFLAGS ~= s,-Wmissing-field-initializers,
+ LLVM_CXXFLAGS ~= s,-Wno-unknown-warning,
+ LLVM_CXXFLAGS ~= s,-Wno-unused-command-line-argument,
LLVM_CXXFLAGS ~= s,-fPIC,
LLVM_CXXFLAGS ~= s,-pedantic,
LLVM_CXXFLAGS ~= s,-Wstring-conversion,