File chromium-146-ignore-for-ubsan.patch of Package chromium

clang++-19: error: unknown argument: '-fsanitize-ignore-for-ubsan-feature=array-bounds'


--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -1860,13 +1860,7 @@ config("sanitize_c_array_bounds") {
       # sanitizer) is enabled, they then do expensive debug like operations. We
       # want to suppress this behaviour since we want to keep performance costs
       # as low as possible while having these checks.
-      "-fsanitize-ignore-for-ubsan-feature=array-bounds",
 
-      # Because we've enabled array-bounds sanitizing we also want to suppress
-      # the related warning about "unsafe-buffer-usage-in-static-sized-array",
-      # since we know that the array bounds sanitizing will catch any out-of-
-      # bounds accesses.
-      "-Wno-unsafe-buffer-usage-in-static-sized-array",
     ]
   }
 }
openSUSE Build Service is sponsored by