Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2017 20:22:24 +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: r433099 - head/graphics/yafray/files
Message-ID:  <201702012022.v11KMONg069208@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702012022.v11KMONg069208>