svn commit: r427115 - head/games/gtkradiant/files

Dmitry Marakasov amdmi3 at FreeBSD.org
Fri Nov 25 14:27:38 UTC 2016


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)


More information about the svn-ports-head mailing list