From 46595ce72e5855189e3c60a140c3ca5aaddfb58c Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Thu, 28 Sep 2023 10:51:01 +0100 Subject: Remove some unused poly_int variables Switching to default constructors for poly_int exposed some unused variables that weren't previously diagnosed. gcc/ * dwarf2out.cc (mem_loc_descriptor): Remove unused variables. * tree-affine.cc (expr_to_aff_combination): Likewise. gcc/cp/ * constexpr.cc (cxx_fold_indirect_ref): Remove unused variables. gcc/rust/ * backend/rust-constexpr.cc (rs_fold_indirect_ref): Remove unused variables. --- gcc/rust/backend/rust-constexpr.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'gcc/rust/backend') diff --git a/gcc/rust/backend/rust-constexpr.cc b/gcc/rust/backend/rust-constexpr.cc index 4e581a3..b28fa27 100644 --- a/gcc/rust/backend/rust-constexpr.cc +++ b/gcc/rust/backend/rust-constexpr.cc @@ -737,7 +737,6 @@ rs_fold_indirect_ref (const constexpr_ctx *ctx, location_t loc, tree type, { tree sub = op0; tree subtype; - poly_uint64 const_op01; /* STRIP_NOPS, but stop if REINTERPRET_CAST_P. */ while (CONVERT_EXPR_P (sub) || TREE_CODE (sub) == NON_LVALUE_EXPR -- cgit v1.1