Re: Anyone else compiling with GCC 10.2 on Debian Testing?

2021-01-22 Thread Nate Bargmann
Thanks for the cleanup with GCC 10.2 everyone! I just tried the compile with clang 11.0 on Debian Testing and these are the only two warnings I see: CC cqww_simulator.o ../../tlf/src/cqww_simulator.c:153:15: warning: adding 'int' to a string does not append to the string [-Wstring-plus-i

Re: Anyone else compiling with GCC 10.2 on Debian Testing?

2021-01-22 Thread Christoph Berg
Re: Nate Bargmann > ../../tlf/src/cqww_simulator.c:155:15: warning: adding 'int' to a string does > not append to the string [-Wstring-plus-int] > "+++" + 3 - slow); > ~~^~~ > ../../tlf/src/cqww_simulator.c:155:15: note: u

Re: Anyone else compiling with GCC 10.2 on Debian Testing?

2021-01-22 Thread Nate Bargmann
* On 2021 22 Jan 07:42 -0600, Christoph Berg wrote: > Re: Nate Bargmann > > ../../tlf/src/cqww_simulator.c:155:15: warning: adding 'int' to a string > > does not append to the string [-Wstring-plus-int] > > "+++" + 3 - slow); > >

Re: Anyone else compiling with GCC 10.2 on Debian Testing?

2021-01-22 Thread Ervin Hegedüs
hi Nate, On Fri, Jan 22, 2021 at 08:42:24AM -0600, Nate Bargmann wrote: > > I've attached a short C program that now compiles clean with clang > and gcc with a modification to the format string and the arguments. but this result of this is different from that GCC: $ clang -Wall -I/usr/include/g

Re: Anyone else compiling with GCC 10.2 on Debian Testing?

2021-01-22 Thread Ervin Hegedüs
ahm, sorry, that was my mistake - I didn't realize the g_random_int_range()... Using the constant value the output will be the same. Sorry again :). 73, Ervin >

Re: Anyone else compiling with GCC 10.2 on Debian Testing?

2021-01-22 Thread Nate Bargmann
* On 2021 22 Jan 09:43 -0600, Ervin Hegedüs wrote: > ahm, sorry, > > that was my mistake - I didn't realize the g_random_int_range()... > > Using the constant value the output will be the same. > > Sorry again :). :-) I did forget the compilation command lines I used: clang -Wall trial.c $(pk

Re: Anyone else compiling with GCC 10.2 on Debian Testing?

2021-01-22 Thread Zoltan Csahok
> No, the intention is string truncation of 0 to 3 - and + characters > prepending and appending the callsign. Exactly, in order to slow down if op has difficulty copying the calls. (it's my code; adding an int to a char ptr is completely legit) 73, Zoli

Re: Anyone else compiling with GCC 10.2 on Debian Testing?

2021-01-22 Thread Nate Bargmann
* On 2021 22 Jan 15:48 -0600, Zoltan Csahok wrote: > > No, the intention is string truncation of 0 to 3 - and + characters > > prepending and appending the callsign. > > Exactly, in order to slow down if op has difficulty copying the calls. > (it's my code; adding an int to a char ptr is completel