mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
- Fix build with clang 3.9
PR: 214650 Approved by: portmgr blanket
This commit is contained in:
parent
c01e294635
commit
3e2501b5a2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=427115
11
games/gtkradiant/files/patch-plugins_vfspk3_vfs.cpp
Normal file
11
games/gtkradiant/files/patch-plugins_vfspk3_vfs.cpp
Normal file
@ -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;
|
||||
|
13
games/gtkradiant/files/patch-radiant_eclass__def.cpp
Normal file
13
games/gtkradiant/files/patch-radiant_eclass__def.cpp
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user