From fe648fb91c51cb477cf0380105c0bb85796be2df Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Wed, 14 Dec 2022 10:33:24 +0100 Subject: Adjust for "Make Warray-bounds alias to Warray-bounds= [PR107787]" See GCC upstream commit 7c01d029fca669263b9c2dcb8837c42f7ae3a77f "Make Warray-bounds alias to Warray-bounds= [PR107787]". --- gcc/rust/backend/rust-tree.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/rust/backend') diff --git a/gcc/rust/backend/rust-tree.cc b/gcc/rust/backend/rust-tree.cc index fb6ff0f..4272ed7 100644 --- a/gcc/rust/backend/rust-tree.cc +++ b/gcc/rust/backend/rust-tree.cc @@ -3625,7 +3625,7 @@ fold_offsetof (tree expr, tree type, enum tree_code ctx) definition thereof. */ if (TREE_CODE (v) == ARRAY_REF || TREE_CODE (v) == COMPONENT_REF) - warning (OPT_Warray_bounds, + warning (OPT_Warray_bounds_, "index %E denotes an offset " "greater than size of %qT", t, TREE_TYPE (TREE_OPERAND (expr, 0))); -- cgit v1.1