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: Christoph Berg
Subject: Re: Anyone else compiling with GCC 10.2 on Debian Testing?
Date: Fri, 22 Jan 2021 14:41:36 +0100

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: use array indexing to silence 
> this warning
> 
> I'm going to be puzzling that one out for a bit.

As it says, use array indexing: "+++"[3 - slow]

Christoph



reply via email to

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