The code in question is quite strange, i didn't get what developers meant with this, so i just silenced compiler with explicit cast. Fix: This is a patch for files/ dir. Patch attached with submission follows:
Responsible Changed From-To: freebsd-ports-bugs->rafan Over to maintainer (via the GNATS Auto Assign Tool)
State Changed From-To: open->closed committed with upstream fix, thanks!
Author: rafan Date: Mon Oct 8 14:19:46 2012 New Revision: 305536 URL: http://svn.freebsd.org/changeset/ports/305536 Log: - Fix build with clang PR: ports/172357 Submitted by: arrowdodger <6yearold at gmail.com> Obtained from: upstream (20110409 and 20120608 patch) Added: head/devel/ncurses/files/ head/devel/ncurses/files/patch-c++-clang (contents, props changed) Modified: head/devel/ncurses/Makefile Modified: head/devel/ncurses/Makefile ============================================================================== --- head/devel/ncurses/Makefile Mon Oct 8 13:47:58 2012 (r305535) +++ head/devel/ncurses/Makefile Mon Oct 8 14:19:46 2012 (r305536) @@ -7,6 +7,7 @@ PORTNAME= ncurses PORTVERSION= ${RELEASE} +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= ${PORTNAME} Added: head/devel/ncurses/files/patch-c++-clang ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/ncurses/files/patch-c++-clang Mon Oct 8 14:19:46 2012 (r305536) @@ -0,0 +1,40 @@ +--- c++/cursesf.h.orig 2012-10-07 15:21:40.000000000 +0800 ++++ c++/cursesf.h 2012-10-07 15:22:12.000000000 +0800 +@@ -677,7 +677,7 @@ + } + + public: +- NCursesUserForm (NCursesFormField Fields[], ++ NCursesUserForm (NCursesFormField* Fields[], + const T* p_UserData = STATIC_CAST(T*)(0), + bool with_frame=FALSE, + bool autoDelete_Fields=FALSE) +@@ -686,7 +686,7 @@ + set_user (const_cast<void *>(p_UserData)); + }; + +- NCursesUserForm (NCursesFormField Fields[], ++ NCursesUserForm (NCursesFormField* Fields[], + int nlines, + int ncols, + int begin_y = 0, +--- c++/cursesm.h.orig 2012-10-07 15:21:44.000000000 +0800 ++++ c++/cursesm.h 2012-10-07 15:22:55.000000000 +0800 +@@ -635,7 +635,7 @@ + } + + public: +- NCursesUserMenu (NCursesMenuItem Items[], ++ NCursesUserMenu (NCursesMenuItem* Items[], + const T* p_UserData = STATIC_CAST(T*)(0), + bool with_frame=FALSE, + bool autoDelete_Items=FALSE) +@@ -644,7 +644,7 @@ + set_user (const_cast<void *>(p_UserData)); + }; + +- NCursesUserMenu (NCursesMenuItem Items[], ++ NCursesUserMenu (NCursesMenuItem* Items[], + int nlines, + int ncols, + int begin_y = 0, _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"