1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Fix build with Clang 6

PR:		228320
Submitted by:	Matthew Grooms <mgrooms@shrew.net>
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2018-06-19 21:46:26 +00:00
parent ec85543d07
commit 921f613bff
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=472824
2 changed files with 15 additions and 0 deletions

View File

@ -39,6 +39,10 @@ CXXFLAGS+= -Wno-unused-const-variable
CXXFLAGS+= -Wno-tautological-undefined-compare
.if ${COMPILER_VERSION} >= 36
CXXFLAGS+= -Wno-unused-local-typedef
.if ${COMPILER_VERSION} >= 60
CXXFLAGS+= -Wno-null-pointer-arithmetic -Wno-vexing-parse
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-src-stub-cache.cc
.endif
.endif
.endif
.endif

View File

@ -0,0 +1,11 @@
--- src/stub-cache.cc.orig 2013-05-01 12:56:29 UTC
+++ src/stub-cache.cc
@@ -1474,7 +1474,7 @@ Handle<Code> StubCompiler::GetCodeWithFl
Handle<Name> name) {
return (FLAG_print_code_stubs && !name.is_null() && name->IsString())
? GetCodeWithFlags(flags, *Handle<String>::cast(name)->ToCString())
- : GetCodeWithFlags(flags, reinterpret_cast<char*>(NULL));
+ : GetCodeWithFlags(flags, static_cast<char*>(NULL));
}