Opened 13 years ago

Last modified 13 years ago

#30312 closed defect

clang cannot compile nurses — at Initial Version

Reported by: Veence (Vincent) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.0
Keywords: clang Cc: jmr@…
Port: ncurses

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.

Change History (2)

Changed 13 years ago by Veence (Vincent)

Attachment: patch-cursesf_h.diff added

Patch for cursesf.h

Changed 13 years ago by Veence (Vincent)

Attachment: patch-cursesm_h.diff added

Patch for cursesm.h

Note: See TracTickets for help on using tickets.