From 0782cdf5c3d749cb7c1a3b6cfe3a3e96c79530b9 Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Thu, 11 Jun 2020 22:29:26 -0500 Subject: [PATCH] Fix cppcheck warnings in ft991.c --- rigs/yaesu/ft991.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rigs/yaesu/ft991.c b/rigs/yaesu/ft991.c index 45894151c..5921e14f4 100644 --- a/rigs/yaesu/ft991.c +++ b/rigs/yaesu/ft991.c @@ -711,9 +711,7 @@ static int ft991_get_ctcss_tone(RIG *rig, vfo_t vfo, tone_t *tone) static int ft991_set_ctcss_sql(RIG *rig, vfo_t vfo, tone_t tone) { struct newcat_priv_data *priv = (struct newcat_priv_data *)rig->state.priv; - int i; int err; - ncboolean tone_match; rmode_t rmode; rig_debug(RIG_DEBUG_TRACE, "%s called\n", __func__); @@ -736,6 +734,8 @@ static int ft991_set_ctcss_sql(RIG *rig, vfo_t vfo, tone_t tone) } else { + int i; + ncboolean tone_match; for (i = 0, tone_match = FALSE; rig->caps->ctcss_list[i] != 0; i++) { if (tone == rig->caps->ctcss_list[i])