aboutsummaryrefslogtreecommitdiffstats
path: root/devel/bazel5/files/extra-patch-upb_bazel_build__defs.bzl
blob: d48fb6aeaf44985fbece753c5fe25d98b93b5d8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- bazel/build_defs.bzl.orig	2023-08-27 11:49:04.950868000 +0100
+++ bazel/build_defs.bzl	2023-08-27 11:51:17.441304000 +0100
@@ -35,6 +35,7 @@
         # "-Wshorten-64-to-32",  # not in GCC (and my Kokoro images doesn't have Clang)
         "-Werror",
         "-Wno-long-long",
+        "-Wno-deprecated-copy",
         # copybara:strip_end
     ],
 })
@@ -49,6 +50,8 @@
         "-Werror=pedantic",
         "-Wall",
         "-Wstrict-prototypes",
+        "-Wno-gnu-offsetof-extensions",
+        "-Wno-c23-extensions",
         # GCC (at least) emits spurious warnings for this that cannot be fixed
         # without introducing redundant initialization (with runtime cost):
         #   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635