[MacPorts] #65128: xar @1.8.0.487.100.1: error: variable-sized object may not be initialized
MacPorts
noreply at macports.org
Sat May 7 14:57:32 UTC 2022
#65128: xar @1.8.0.487.100.1: error: variable-sized object may not be initialized
-------------------------+-------------------------------------------------
Reporter: | Owner: Schamschula
barracuda156 |
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords: powerpc, tiger, leopard,
Port: xar | snowleopard
-------------------------+-------------------------------------------------
Comment (by kencu):
gcc11 already defaults to a quite new C standard.
This whole issue of variable- length arrays (VLAs), how they are set up
and initialized, and how different compilers and different versions of
compilers handle it is somewhat interesting reading…there’sca lot out
there about this topic.
this code should probably be rewritten to initialize manually rather than
automatically, I think, to be more compatible.
--
Ticket URL: <https://trac.macports.org/ticket/65128#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list