[MacPorts] #30312: clang cannot compile ncurses (was: clang cannot compile nurses)
MacPorts
noreply at macports.org
Sat Jul 23 01:34:19 PDT 2011
#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
More information about the macports-tickets
mailing list