#42307: ImageMagick @6.8.8-3: build failure of other ports with error: comma at end of enumerator list ------------------------------+-------------------------- Reporter: md14-macports@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: Port: ImageMagick | ------------------------------+-------------------------- Comment (by jmr@…): Replying to [comment:1 ryandesign@…]:
This problem only seems to affect older compilers like the Apple gcc 4.2 you're using on Snow Leopard. There's no problem with clang 5 on Mavericks. It's a difference in C standards, not really a compiler difference. Clang happens to default to C99 and gcc-4.2 defaults to C89. The trailing comma was prohibited in C89 but is optional in C99. Presumably clang -std=c89 would generate an error on this code and gcc-4.2 -std=c99 would not.
-- Ticket URL: <https://trac.macports.org/ticket/42307#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X