File chromium-146-drop-unknown-clang-flag.patch of Package ungoogled-chromium-xdg

--- a/build/config/compiler/BUILD.gn      2026-03-09 19:52:01.000000000 +0000
+++ b/build/config/compiler/BUILD.gn      2026-03-10 22:29:51.892264280 +0000
@@ -1855,18 +1855,6 @@ config("sanitize_c_array_bounds") {
     cflags = [
       "-fsanitize=array-bounds",
       "-fsanitize-trap=array-bounds",
-
-      # Some code users feature detection to determine if UBSAN (or any
-      # 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