[MacPorts] #72428: legacy-support header error with C90: LegacySupport/dirent.h: error: expected '; ' before 'int'
MacPorts
noreply at macports.org
Wed Apr 30 22:54:21 UTC 2025
#72428: legacy-support header error with C90: LegacySupport/dirent.h: error:
expected ';' before 'int'
-----------------------------+--------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: legacy-support | Version: 2.10.5
Resolution: | Keywords:
Port: |
-----------------------------+--------------------
Comment (by fhgwright):
I admit I don't think I ever tested anything with `-std=c90`, so it makes
sense that I never saw that. Presumably `gcc14` is engaging in its
typical obnoxiousness of acting like `-pedantic` even when `-pedantic`
isn't specified, with the effect of failing to recognize `inline` as a
keyword in the `-std=c90` case.
Indeed the motivation for the `-std=c90` is highly unclear. Usually, such
options are used to force a ''minimum'' language standard, only to
sometimes cause trouble by forcing a ''maximum'' standard (as in this
case). But I can't imagine what compiler would need to be told `-std=c90`
as a ''minimum''. It should be completely equivalent to `-std=c89`, and
the only thing earlier than that would be K&R C, which is almost certainly
not the default, if it's provided at all.
Except for being related to compiler options rather than feature flags,
this is a similar issue to #72406.
--
Ticket URL: <https://trac.macports.org/ticket/72428#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list