This is an automated email from Gerrit. "Evgeniy Naydanov <evgeniy.nayda...@syntacore.com>" just uploaded a new patch set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/8755
-- gerrit commit 5a7ec02155d61692607010cda392f60705f27c12 Author: Evgeniy Naydanov <evgeniy.nayda...@syntacore.com> Date: Wed Feb 12 21:12:30 2025 +0300 flash/nor/rsl10: drop unused `rsl10_info` in `rsl10_protect_check()` `struct rsl10_info *chip` is only used in `rsl10_protect_check()` in an assertion triggerring `-Wunused-variable` when compiled with `DNDEBUG`. Drop it. Change-Id: Ib302aea742131479f04f32e8fe8a88a3230ae203 Signed-off-by: Evgeniy Naydanov <evgeniy.nayda...@syntacore.com> diff --git a/src/flash/nor/rsl10.c b/src/flash/nor/rsl10.c index c286e9ac88..4d7db86e3d 100644 --- a/src/flash/nor/rsl10.c +++ b/src/flash/nor/rsl10.c @@ -156,9 +156,6 @@ static int rsl10_get_probed_chip_if_halted(struct flash_bank *bank, struct rsl10 static int rsl10_protect_check(struct flash_bank *bank) { struct rsl10_bank *nbank = bank->driver_priv; - struct rsl10_info *chip = nbank->chip; - - assert(chip); uint32_t status; --