Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bazel_6: fix CLang 16 Werror-s on darwin
bazel_6 https://hydra.nixos.org/build/241090720/nixlog/1 ``` external/upb/upb/upb.c:228:25: error: defining a type within '__builtin_offsetof' is a Clang extension [-Werror,-Wgnu-offsetof-extensions] n = UPB_ALIGN_DOWN(n, UPB_ALIGN_OF(upb_Arena)); ^~~~~~~~~~~~~~~~~~~~~~~ ``` bazel_6 https://hydra.nixos.org/build/241127779/nixlog/1 ``` In file included from external/com_google_absl/absl/algorithm/container.h:55: external/com_google_absl/absl/meta/type_traits.h:560:8: error: builtin __has_trivial_assign is deprecated; use __is_trivially_assignable instead [-Werror,-Wdeprecated-builtins] (__has_trivial_assign(ExtentsRemoved) || !kIsCopyOrMoveAssignable) && ^ ``` Note: `bazel_5` and `bazel_4` require more work, for some reason extra `-Wall` in combination with `-Werror` sneaks in and overrides `-Wno-` settings, haven't managed yet to debug where exactly are the last flags (last one wins) come from there. ZHF: #265948
- Loading branch information