Andy Stewart
2016-12-29 19:06:08 UTC
hamlib-utils.c:625:30: error: length modifier 'L' results in
undefined behavior or no effect with 'd'
conversion specifier [-Werror,-Wformat]
g_string_printf (digits, "%Ld",
programstate.rigfrequency);
~^~
hamlib-utils.c:625:30: note: did you mean to use 'll'?
* change to ll*
The code wants to print a long double. My version of gcc accepts %Ld.undefined behavior or no effect with 'd'
conversion specifier [-Werror,-Wformat]
g_string_printf (digits, "%Ld",
programstate.rigfrequency);
~^~
hamlib-utils.c:625:30: note: did you mean to use 'll'?
* change to ll*
Is there a way to express a long double for printf() with the compiler
version you're using?
it compiles but I haven't tested the code yet.
73,
Andy
--
Andy Stewart (KB1OIQ)
Founder: Worcester Linux Users' Group
Founder: Chelmsford Linux Meetup Group
President: PART of Westford, MA (WB1GOF)
Andy Stewart (KB1OIQ)
Founder: Worcester Linux Users' Group
Founder: Chelmsford Linux Meetup Group
President: PART of Westford, MA (WB1GOF)