Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Nov 2016 14:27:36 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r427115 - head/games/gtkradiant/files
Message-ID:  <201611251427.uAPERa5w058277@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Nov 25 14:27:36 2016
New Revision: 427115
URL: https://svnweb.freebsd.org/changeset/ports/427115

Log:
  - Fix build with clang 3.9
  
  PR:		214650
  Approved by:	portmgr blanket

Added:
  head/games/gtkradiant/files/patch-plugins_vfspk3_vfs.cpp   (contents, props changed)
  head/games/gtkradiant/files/patch-radiant_eclass__def.cpp   (contents, props changed)

Added: head/games/gtkradiant/files/patch-plugins_vfspk3_vfs.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/gtkradiant/files/patch-plugins_vfspk3_vfs.cpp	Fri Nov 25 14:27:36 2016	(r427115)
@@ -0,0 +1,11 @@
+--- plugins/vfspk3/vfs.cpp.orig	2006-02-10 22:01:20 UTC
++++ plugins/vfspk3/vfs.cpp
+@@ -351,7 +351,7 @@ void InitDirectory(const char* directory
+         if(name == 0)
+           break;
+ 
+-        char *ext = strrchr (name, '.');
++        const char *ext = strrchr (name, '.');
+         if ((ext == 0) || *(++ext) == '\0' || GetArchiveTable(archiveModules, ext) == 0)
+           continue;
+ 

Added: head/games/gtkradiant/files/patch-radiant_eclass__def.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/gtkradiant/files/patch-radiant_eclass__def.cpp	Fri Nov 25 14:27:36 2016	(r427115)
@@ -0,0 +1,13 @@
+--- radiant/eclass_def.cpp.orig	2006-02-10 22:01:20 UTC
++++ radiant/eclass_def.cpp
+@@ -168,8 +168,8 @@ void setSpecialLoad(EntityClass *e, cons
+   // Hydra: removed some amazingly bad cstring usage, whoever wrote that
+   // needs to be taken out and shot.
+ 
+-  char *pText = 0;
+-  char *where = 0;
++  const char *pText = 0;
++  const char *where = 0;
+ 
+   where = strstr(e->comments(),pWhat);
+   if (!where)



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