File ignore-Wstring-conversion.patch of Package rust1.60.24906

Index: rustc-1.51.0-src/compiler/rustc_llvm/build.rs
===================================================================
--- rustc-1.51.0-src.orig/compiler/rustc_llvm/build.rs
+++ rustc-1.51.0-src/compiler/rustc_llvm/build.rs
@@ -154,6 +154,12 @@ fn main() {
             continue;
         }
 
+        // hack to avoid flag on openSUSE which is incompatible with GCC
+        if flag.starts_with("-W") && flag.contains("string-conversion") {
+            continue;
+        }
+
+
         cfg.flag(flag);
     }
 
openSUSE Build Service is sponsored by