[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. b17644d4e3d53b36ec168
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: n0nb <n0...@us...> - 2025-06-07 01:50:34
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Hamlib -- Ham radio control libraries". The branch, master has been updated via b17644d4e3d53b36ec168574cec8b5a770c7fe46 (commit) from 04a8503eab7fbf4cabd11766b01dc84603fb258b (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit b17644d4e3d53b36ec168574cec8b5a770c7fe46 Author: markjfine <mar...@fi...> Date: Fri Jun 6 15:50:55 2025 -0400 Kill warnings Kills some warnings in jrc_set_func when compiling on Mac that weren't seen in Linux. diff --git a/rigs/jrc/jrc.c b/rigs/jrc/jrc.c index 8f24f1e41..40cd79ff0 100644 --- a/rigs/jrc/jrc.c +++ b/rigs/jrc/jrc.c @@ -466,7 +466,7 @@ int jrc_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width) int jrc_set_func(RIG *rig, vfo_t vfo, setting_t func, int status) { char cmdbuf[BUFSZ]; - int blanker; + int blanker = 0; /* Optimize: * sort the switch cases with the most frequent first @@ -485,7 +485,7 @@ int jrc_set_func(RIG *rig, vfo_t vfo, setting_t func, int status) blanker = 0; else if (func == RIG_FUNC_NB) blanker = 1; - else if (func == RIG_FUNC_NB2) + else //if (func == RIG_FUNC_NB2) blanker = 2; SNPRINTF(cmdbuf, sizeof(cmdbuf), "N%d" EOM, blanker); ----------------------------------------------------------------------- Summary of changes: rigs/jrc/jrc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |