[Hamlib-developer] Newcat Error
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Gary R. <cga...@gm...> - 2023-03-21 10:36:58
|
Good morning: I had errors this morning when trying to compile Hamlib from master. The errors were encountered in both MacOS and Raspberry PI OS compiles for the Newcat file. See below: Mac Compile: CC ft710.lo ft710.c:166:24: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [LVL_RAWSTR] = { .min = { .i = 0 }, .max = { .i = 255 } }, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./level_gran_yaesu.h:5:31: note: previous initialization is here [LVL_RAWSTR] = { .min = { .i = 0 }, .max = { .i = 255 } }, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ft710.c:167:25: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [LVL_CWPITCH] = { .min = { .i = 300 }, .max = { .i = 1050 }, .step = { .i = 10 } }, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./level_gran_yaesu.h:14:31: note: previous initialization is here [LVL_CWPITCH] = { .min = { .i = 300 }, .max = { .i = 1050 }, .step = { .i = 50 } }, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ft710.c:168:24: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [LVL_KEYSPD] = { .min = { .i = 4 }, .max = { .i = 60 }, .step = { .i = 1 } }, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./level_gran_yaesu.h:12:25: note: previous initialization is here [LVL_KEYSPD] = { .min = { .i = 4 }, .max = { .i = 60 }, .step = { .i = 1 } }, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ft710.c:169:24: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [LVL_NOTCHF] = { .min = { .i = 1 }, .max = { .i = 3200 }, .step = { .i = 10 } }, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./level_gran_yaesu.h:16:31: note: previous initialization is here [LVL_NOTCHF] = { .min = { .i = 1 }, .max = { .i = 3200 }, .step = { .i = 10 } }, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. CC newcat.lo newcat.c:10858:21: error: label at end of compound statement: expected statement default: ^ ; 1 error generated. make[1]: *** [newcat.lo] Error 1 make: *** [all-recursive] Error 1 MacBook-Pro-3:Hamlib-master charlesrogers$ Raspberry Pi compile: newcat.c: In function 'newcat_set_cmd_validate': newcat.c:10858:13: error: label at end of compound statement 10858 | default: | ^~~~~~~ make[1]: *** [Makefile:561: newcat.lo] Error 1 make[1]: Leaving directory '/home/pi/Downloads/Hamlib-master/rigs/yaesu' make: *** [Makefile:634: all-recursive] Error 1 pi@raspberrypi:~/Downloads/Hamlib-master $ Please note that the Windows version seemed to compile without errors but have not tested it on the air. I did compile the previous day’s hamlib master in all three platforms without error and used the Mac version without problems on the air last night. Rig is FTDX-10 Let me know if I can be of further assistance. |