On Tue, Oct 25, 2016 at 10:52:12AM +0200, Florian Schmidt wrote: > On 10/22/2016 07:35 PM, Dominik Vogt wrote: > >And the least invasive way to prevent this is faking a read with > >the coid-cast. > > I assume marking the variable as potentially unused via > __attribute__((unused)) or similar is undesirable because it depends > on compiler-specific extensions?
Yes. There's no portable way to do it. > Then again, the warnings are also compiler-specific... Right. A solution must disable the warnings on any compilers and versions the developers use, and not break compilation anywhere. Ciao Dominik ^_^ ^_^ -- Dominik Vogt