diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2016-11-25 22:27:36 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2016-11-25 22:27:36 +0800 |
commit | 3ac068157dc895f56644b956c080599403849b48 (patch) | |
tree | 54b6df015ee7d8df3f650b4a156f3931874a9e0e /games/gtkradiant | |
parent | 5243e04566f48c56eeccc0535a3944b9206af8cd (diff) | |
download | freebsd-ports-gnome-3ac068157dc895f56644b956c080599403849b48.tar.gz freebsd-ports-gnome-3ac068157dc895f56644b956c080599403849b48.tar.zst freebsd-ports-gnome-3ac068157dc895f56644b956c080599403849b48.zip |
- Fix build with clang 3.9
PR: 214650
Approved by: portmgr blanket
Diffstat (limited to 'games/gtkradiant')
-rw-r--r-- | games/gtkradiant/files/patch-plugins_vfspk3_vfs.cpp | 11 | ||||
-rw-r--r-- | games/gtkradiant/files/patch-radiant_eclass__def.cpp | 13 |
2 files changed, 24 insertions, 0 deletions
diff --git a/games/gtkradiant/files/patch-plugins_vfspk3_vfs.cpp b/games/gtkradiant/files/patch-plugins_vfspk3_vfs.cpp new file mode 100644 index 000000000000..883de622522e --- /dev/null +++ b/games/gtkradiant/files/patch-plugins_vfspk3_vfs.cpp @@ -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; + diff --git a/games/gtkradiant/files/patch-radiant_eclass__def.cpp b/games/gtkradiant/files/patch-radiant_eclass__def.cpp new file mode 100644 index 000000000000..bba8e62c54e9 --- /dev/null +++ b/games/gtkradiant/files/patch-radiant_eclass__def.cpp @@ -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) |