Fix the unguarded-availability-new error

This fixes the following error, when using LLVM 6.0.0:
cc1plus: error: -Werror=unguarded-availability-new: no option -Wunguarded-availability-new

Task-number: QTCREATORBUG-18398
Change-Id: I243e6165cd624440eb0f376594b2f802c5c909bb
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Jarek Kobus
2018-09-19 11:47:43 +02:00
parent 31ed8137d6
commit c77cb96d99

View File

@@ -226,7 +226,7 @@ isEmpty(LLVM_VERSION) {
LLVM_CXXFLAGS ~= s,/EH\S*,
LLVM_CXXFLAGS ~= s,/M\S*,
LLVM_CXXFLAGS ~= s,/G\S*,
LLVM_CXXFLAGS ~= s,-Werror=date-time,
LLVM_CXXFLAGS ~= s,-Werror=\S*,
LLVM_CXXFLAGS ~= s,-Wcovered-switch-default,
LLVM_CXXFLAGS ~= s,-fPIC,
LLVM_CXXFLAGS ~= s,-pedantic,