#30312: clang cannot compile ncurses --------------------------------+------------------------------------------- Reporter: vince@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: clang | Port: ncurses --------------------------------+------------------------------------------- Description changed by vince@…: Old description:
The clang++ compiler does not compile nurses 1.9 because of a mistake between
{{{ NCursesUserForm (NCursesFormField* Fields[],…) and NCursesUserForm (NCursesFormField Fields[], }}}
in cursesm.h and cursesf.h.
Apparently, since this objects are never instantiated, GCC does not complain about the type mismatch, whereas clang is more correct.
I join two patches that fix this inconsistency. Please update the portfile accordingly.
New description: The clang++ compiler does not compile ncurses 1.9 because of a mistake between {{{ NCursesUserForm (NCursesFormField* Fields[],…) and NCursesUserForm (NCursesFormField Fields[], }}} in cursesm.h and cursesf.h. Apparently, since these objects are never instantiated, GCC does not complain about the type mismatch, whereas clang is more correct. I join two patches that fix this inconsistency. Please update the portfile accordingly. -- -- Ticket URL: <https://trac.macports.org/ticket/30312#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS