From owner-svn-ports-all@freebsd.org Mon May 30 11:58:43 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AF199B54799; Mon, 30 May 2016 11:58:43 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6EDED1B23; Mon, 30 May 2016 11:58:43 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4UBwg2Z059190; Mon, 30 May 2016 11:58:42 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4UBwgMD059189; Mon, 30 May 2016 11:58:42 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201605301158.u4UBwgMD059189@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Mon, 30 May 2016 11:58:42 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r416146 - head/games/burrtools/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2016 11:58:43 -0000 Author: jbeich Date: Mon May 30 11:58:42 2016 New Revision: 416146 URL: https://svnweb.freebsd.org/changeset/ports/416146 Log: games/burrtools: unbreak build on 11.0 lib/stl.cpp: In member function 'void stlExporter_c::write(const char*, const voxel_c&, const faceList_c&)': lib/stl.cpp:69:38: error: invalid conversion from 'const char*' to 'char*' [-fpermissive] const char * title = basename(fname); ^ In file included from lib/stl.cpp:44:0: /usr/include/libgen.h:38:7: error: initializing argument 1 of 'char* basename(char*)' [-fpermissive] char *basename(char *); ^ PR: 209747 Reported by: antoine (exp-run) Modified: head/games/burrtools/files/patch-src-lib-stl.cpp (contents, props changed) Modified: head/games/burrtools/files/patch-src-lib-stl.cpp ============================================================================== --- head/games/burrtools/files/patch-src-lib-stl.cpp Mon May 30 10:11:22 2016 (r416145) +++ head/games/burrtools/files/patch-src-lib-stl.cpp Mon May 30 11:58:42 2016 (r416146) @@ -18,3 +18,12 @@ void stlExporter_c::write(const char * fname, const voxel_c & v, const faceList_c & holes) +@@ -62,7 +64,7 @@ void stlExporter_c::write(const char * f + FILE * f; + unsigned long triangleCount = 0; + +- const char * title = basename(fname); ++ const char * title = basename(const_cast(fname)); + + if (binaryMode) + {