--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -1919,6 +1912,11 @@
     }
   }
 
+  cflags += [
+    "-Wno-unknown-warning-option",
+    "-Wno-unknown-pragmas",
+  ]
+
   # Rust warnings
 
   # Require `unsafe` blocks even in `unsafe` fns. This is intended to become
