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: 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
* 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);
> >
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
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
>
* 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
> 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
* 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