Date: Mon, 30 May 2016 11:58:42 +0000 (UTC) From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r416146 - head/games/burrtools/files Message-ID: <201605301158.u4UBwgMD059189@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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<char*>(fname)); + + if (binaryMode) + {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605301158.u4UBwgMD059189>