svn commit: r433099 - head/graphics/yafray/files

Jan Beich jbeich at FreeBSD.org
Wed Feb 1 20:22:25 UTC 2017


Author: jbeich
Date: Wed Feb  1 20:22:24 2017
New Revision: 433099
URL: https://svnweb.freebsd.org/changeset/ports/433099

Log:
  graphics/yafray: unbreak with libc++ 3.9
  
  src/shaders/basictex.cc:262:8: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *'
          char *ext = strrchr(filename, '.');
                ^     ~~~~~~~~~~~~~~~~~~~~~~
  
  Reported by:	pkg-fallout

Added:
  head/graphics/yafray/files/patch-src_shaders_basictex.cc   (contents, props changed)

Added: head/graphics/yafray/files/patch-src_shaders_basictex.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/yafray/files/patch-src_shaders_basictex.cc	Wed Feb  1 20:22:24 2017	(r433099)
@@ -0,0 +1,11 @@
+--- src/shaders/basictex.cc.orig	2006-06-10 00:41:26 UTC
++++ src/shaders/basictex.cc
+@@ -259,7 +259,7 @@ textureImage_t::textureImage_t(const cha
+ 		intp_type = BICUBIC;
+ 	
+ 	// Load image, try to determine from extensions first
+-	char *ext = strrchr(filename, '.');
++	const char *ext = strrchr(filename, '.');
+ 	bool jpg_tried = false;
+ 	bool tga_tried = false;
+ 	bool hdr_tried = false;


More information about the svn-ports-all mailing list