Re: [MacPorts] #66722: avrdude fails to build with gcc-4.2: error: ‘for’ loop initial declaration used outside C99 mode; error: ‘struct Data’ has no member named ‘ll’
MacPorts
noreply at macports.org
Fri Jan 20 12:57:37 UTC 2023
#66722: avrdude fails to build with gcc-4.2: error: ‘for’ loop initial declaration
used outside C99 mode; error: ‘struct Data’ has no member named ‘ll’
-------------------------+-------------------------------------------------
Reporter: | Owner: (none)
barracuda156 |
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.0
Resolution: | Keywords: powerpc, leopard, snowleopard,
Port: avrdude | rosetta
-------------------------+-------------------------------------------------
Comment (by jmroot):
Replying to [comment:1 barracuda156]:
> This time just passing `-std=c99` fails to help:
That's because the code is using an anonymous union member in a struct,
which is a C11 feature.
--
Ticket URL: <https://trac.macports.org/ticket/66722#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list