File 007-clang_cxxflags-4.9.0.patch of Package qtcreator

diff -uprN qt-creator-opensource-src-4.9.0-orig/src/shared/clang/clang_installation.pri qt-creator-opensource-src-4.9.0/src/shared/clang/clang_installation.pri
--- qt-creator-opensource-src-4.9.0-orig/src/shared/clang/clang_installation.pri	2019-04-11 14:49:20.000000000 +0200
+++ qt-creator-opensource-src-4.9.0/src/shared/clang/clang_installation.pri	2019-05-11 12:17:49.689141308 +0200
@@ -260,6 +260,7 @@ isEmpty(LLVM_VERSION) {
     LLVM_CXXFLAGS ~= s,/M\S*,
     LLVM_CXXFLAGS ~= s,/G\S*,
     LLVM_CXXFLAGS ~= s,-Werror=\S*,
+    LLVM_CXXFLAGS ~= s,-Werror=unguarded-availability-new,
     LLVM_CXXFLAGS ~= s,-Wcovered-switch-default,
     LLVM_CXXFLAGS ~= s,-Wnon-virtual-dtor,
     LLVM_CXXFLAGS ~= s,-Woverloaded-virtual,
openSUSE Build Service is sponsored by