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:
parent
ec85543d07
commit
921f613bff
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=472824
@ -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
|
||||
|
11
lang/v8/files/extra-patch-src-stub-cache.cc
Normal file
11
lang/v8/files/extra-patch-src-stub-cache.cc
Normal 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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user