File tree Expand file tree Collapse file tree 8 files changed +84
-30
lines changed Expand file tree Collapse file tree 8 files changed +84
-30
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,10 @@ PassRefPtr<OpaqueJSString> OpaqueJSString::create(const String& string)
4141
4242String OpaqueJSString::string () const
4343{
44+ #pragma clang diagnostic push
45+ #pragma clang diagnostic ignored "-Wundefined-bool-conversion"
4446 if (!this )
47+ #pragma clang diagnostic pop
4548 return String ();
4649
4750 // Return a copy of the wrapped string, because the caller may make it an Identifier.
@@ -50,7 +53,10 @@ String OpaqueJSString::string() const
5053
5154Identifier OpaqueJSString::identifier (VM* vm) const
5255{
56+ #pragma clang diagnostic push
57+ #pragma clang diagnostic ignored "-Wundefined-bool-conversion"
5358 if (!this || m_string.isNull ())
59+ #pragma clang diagnostic pop
5460 return Identifier ();
5561
5662 if (m_string.isEmpty ())
Original file line number Diff line number Diff line change @@ -53,8 +53,11 @@ struct OpaqueJSString : public ThreadSafeRefCounted<OpaqueJSString> {
5353
5454 JS_EXPORT_PRIVATE static PassRefPtr<OpaqueJSString> create (const String&);
5555
56+ #pragma clang diagnostic push
57+ #pragma clang diagnostic ignored "-Wundefined-bool-conversion"
5658 const UChar* characters () { return !!this ? m_string.characters () : 0 ; }
5759 unsigned length () { return !!this ? m_string.length () : 0 ; }
60+ #pragma clang diagnostic pop
5861
5962 JS_EXPORT_PRIVATE String string () const ;
6063 JSC::Identifier identifier (JSC::VM*) const ;
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -986,7 +986,7 @@ class MacroAssembler : public MacroAssemblerBase {
986986 if (bitwise_cast<uint64_t >(value * 1.0 ) != bitwise_cast<uint64_t >(value))
987987 return shouldConsiderBlinding ();
988988
989- value = abs (value);
989+ value = fabs (value);
990990 // Only allow a limited set of fractional components
991991 double scaledValue = value * 8 ;
992992 if (scaledValue / 8 != value)
Original file line number Diff line number Diff line change @@ -269,7 +269,10 @@ namespace JSC {
269269
270270 bool isVMEntrySentinel () const
271271 {
272+ #pragma clang diagnostic push
273+ #pragma clang diagnostic ignored "-Wundefined-bool-conversion"
272274 return !!this && codeBlock () == vmEntrySentinelCodeBlock ();
275+ #pragma clang diagnostic pop
273276 }
274277
275278 CallFrame* vmEntrySentinelCallerFrame () const
Original file line number Diff line number Diff line change @@ -55,7 +55,10 @@ namespace JSC {
5555 intptr_t asID ()
5656 {
5757 ASSERT (this );
58+ #pragma clang diagnostic push
59+ #pragma clang diagnostic ignored "-Wundefined-bool-conversion"
5860 if (!this ) // Be defensive in release mode.
61+ #pragma clang diagnostic pop
5962 return nullID;
6063 if (!m_id)
6164 getID ();
Original file line number Diff line number Diff line change 13331333 isa = XCBuildConfiguration;
13341334 baseConfigurationReference = 6541CAF41630DB26006D0DEC /* CopyWTFHeaders.xcconfig */;
13351335 buildSettings = {
1336+ ENABLE_BITCODE = YES;
13361337 PRODUCT_NAME = "$(TARGET_NAME)";
13371338 };
13381339 name = Debug;
13411342 isa = XCBuildConfiguration;
13421343 baseConfigurationReference = 6541CAF41630DB26006D0DEC /* CopyWTFHeaders.xcconfig */;
13431344 buildSettings = {
1345+ ENABLE_BITCODE = YES;
13441346 PRODUCT_NAME = "$(TARGET_NAME)";
13451347 };
13461348 name = Release;
13491351 isa = XCBuildConfiguration;
13501352 baseConfigurationReference = 6541CAF41630DB26006D0DEC /* CopyWTFHeaders.xcconfig */;
13511353 buildSettings = {
1354+ ENABLE_BITCODE = YES;
13521355 PRODUCT_NAME = "$(TARGET_NAME)";
13531356 };
13541357 name = Production;
Original file line number Diff line number Diff line change @@ -294,7 +294,7 @@ namespace double_conversion {
294294 inline Dest BitCast (const Source& source) {
295295 // Compile time assertion: sizeof(Dest) == sizeof(Source)
296296 // A compile error here means your Dest and Source have different sizes.
297- typedef char VerifySizesAreEqual[sizeof (Dest) == sizeof (Source) ? 1 : -1 ];
297+ // typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1];
298298
299299 Dest dest;
300300 memcpy (&dest, &source, sizeof (dest));
You can’t perform that action at this time.
0 commit comments