tlf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Nate Bargmann
Subject: Re: Anyone else compiling with GCC 10.2 on Debian Testing?
Date: Fri, 22 Jan 2021 05:00:35 -0600

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-int]
                                    "---" + 3 - slow,
                                    ~~~~~~^~~
../../tlf/src/cqww_simulator.c:153:15: note: use array indexing to silence this 
warning
                                    "---" + 3 - slow,
                                          ^
                                    &     [  ]
../../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: use array indexing to silence this 
warning
                                    "+++" + 3 - slow);
                                          ^
                                    &     [  ]
2 warnings generated.


These lines are part of this call:

        char *str = g_strdup_printf("%s%s%s",
                                    "---" + 3 - slow,
                                    CALLMASTERARRAY(callnumber),
                                    "+++" + 3 - slow);

which is creating a cwdaemon keyer string.

I'm going to be puzzling that one out for a bit.

73, Nate

-- 

"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."

Web: https://www.n0nb.us
Projects: https://github.com/N0NB
GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]