[gtk-osx] Add warning fix to WebKit-2.4.11 fixups patch.



commit d6a3291e9fd8e0baa219fe8a0fc3fefffb9060b3
Author: John Ralls <jralls ceridwen us>
Date:   Fri Oct 13 14:22:02 2017 -0700

    Add warning fix to WebKit-2.4.11 fixups patch.
    
    Reduces noise in compilation.

 patches/WebKit-2.4.11-fixups.patch |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/patches/WebKit-2.4.11-fixups.patch b/patches/WebKit-2.4.11-fixups.patch
index a0277c4..6798697 100644
--- a/patches/WebKit-2.4.11-fixups.patch
+++ b/patches/WebKit-2.4.11-fixups.patch
@@ -35,3 +35,15 @@
  #include "TextDirection.h"
  #include "UserAgentStyleSheets.h"
  #include "WidgetRenderingContext.h"
+--- a/Source/JavaScriptCore/assembler/MacroAssembler.h~
++++ b/Source/JavaScriptCore/assembler/MacroAssembler.h
+@@ -986,2 +986,2 @@ public:
+         if (bitwise_cast<uint64_t>(value * 1.0) != bitwise_cast<uint64_t>(value))
+             return shouldConsiderBlinding();
+
+-        value = abs(value);
++        value = std::abs(value);
+         // Only allow a limited set of fractional components
+         double scaledValue = value * 8;
+         if (scaledValue / 8 != value)
+         
\ No newline at end of file


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]