[MacPorts] #72428: legacy-support header error with C90: LegacySupport/dirent.h: error: expected '; ' before 'int'
MacPorts
noreply at macports.org
Wed Apr 30 23:16:03 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):
Replying to [comment:2 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.
Actually, upon reflection, I realized that `gcc14` is within its rights to
disallow `inline` in `-std=c90` mode, since recognizing a new keyword is a
potential incompatibility.
As far as the cause of the `-std=c90` is concerned, you might look to see
whether this is coming from a misbehaving configure test.
--
Ticket URL: <https://trac.macports.org/ticket/72428#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list