Hi Stefano,
> Well, then we can simply move "int fd" before the "switch (c)", then it
> is C99.
sure, I will send a v2.
> It seems we should add a test case in CI with clang, I always use gcc
> and I do not get these errors (and yes, I was aware of this, but as gcc
> didn't complain, it was ok to me)..
Agreed. I will send a separate patch series, as I've noticed a few more things
that could be improved in the CI setup while I'm at it. I need to correct
myself, though: at least with Clang 18, this issue is only a compiler warning.
It may have been different with Christian's older Clang version. Anyway, I
think it's a good idea to fix warnings in general.
Kind Regards,
Michael
--
Michael Adler
Siemens AG
Technology
Connectivity & Edge
Open Source Embedded Systems
T CED OES-DE
Friedrich-Ludwig-Bauer-Str. 3
85748 Garching, Germany
Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Jim Hagemann
Snabe; Managing Board: Roland Busch, Chairman, President and Chief Executive
Officer; Cedrik Neike, Matthias Rebellius, Ralf P. Thomas, Judith Wiese;
Registered offices: Berlin and Munich, Germany; Commercial registries:
Berlin-Charlottenburg, HRB 12300, Munich, HRB 6684; WEEE-Reg.-No. DE 23691322