Title: [208984] trunk/Source/WebCore
Revision
208984
Author
o...@webkit.org
Date
2016-11-26 20:40:58 -0800 (Sat, 26 Nov 2016)

Log Message

Fix build warnings in WebCore/Modules/indexeddb/server/IDBSerialization.cp
https://bugs.webkit.org/show_bug.cgi?id=165070

Reviewed by Brady Eidson.

* Modules/indexeddb/server/IDBSerialization.cpp:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (208983 => 208984)


--- trunk/Source/WebCore/ChangeLog	2016-11-27 04:21:49 UTC (rev 208983)
+++ trunk/Source/WebCore/ChangeLog	2016-11-27 04:40:58 UTC (rev 208984)
@@ -1,3 +1,12 @@
+2016-11-26  Csaba Osztrogonác  <o...@webkit.org>
+
+        Fix build warnings in WebCore/Modules/indexeddb/server/IDBSerialization.cp
+        https://bugs.webkit.org/show_bug.cgi?id=165070
+
+        Reviewed by Brady Eidson.
+
+        * Modules/indexeddb/server/IDBSerialization.cpp:
+
 2016-11-26  Sam Weinig  <s...@webkit.org>
 
         Convert IntersectionObserver over to using RuntimeEnabledFeatures so it can be properly excluded from script

Modified: trunk/Source/WebCore/Modules/indexeddb/server/IDBSerialization.cpp (208983 => 208984)


--- trunk/Source/WebCore/Modules/indexeddb/server/IDBSerialization.cpp	2016-11-27 04:21:49 UTC (rev 208983)
+++ trunk/Source/WebCore/Modules/indexeddb/server/IDBSerialization.cpp	2016-11-27 04:40:58 UTC (rev 208984)
@@ -96,7 +96,9 @@
 
 // This is the magic character that begins serialized PropertyLists, and tells us whether
 // the key we're looking at is an old-style key.
+#if USE(CF)
 static const uint8_t LegacySerializedKeyVersion = 'b';
+#endif
 
 // FIXME: Linux ports uses KeyedEncoderGlib for their IDBKeys.
 // When a Glib maintainer comes along to enable the new serialization they'll need to
@@ -134,6 +136,7 @@
 
 // FIXME: If the GLib magic character ends up being 0x00, we should consider changing
 // this 0x00 so we can support Glib keyed encoding, also.
+#if USE(CF)
 static const uint8_t SIDBKeyVersion = 0x00;
 enum class SIDBKeyType : uint8_t {
     Min = 0x00,
@@ -168,6 +171,7 @@
 
     RELEASE_ASSERT_NOT_REACHED();
 }
+#endif
 
 #if CPU(BIG_ENDIAN) || CPU(MIDDLE_ENDIAN) || CPU(NEEDS_ALIGNED_ACCESS)
 template <typename T> static void writeLittleEndian(Vector<char>& buffer, T value)
@@ -206,6 +210,7 @@
 }
 #endif
 
+#if USE(CF)
 static void writeDouble(Vector<char>& data, double d)
 {
     writeLittleEndian(data, *reinterpret_cast<uint64_t*>(&d));
@@ -264,6 +269,7 @@
         break;
     }
 }
+#endif
 
 RefPtr<SharedBuffer> serializeIDBKeyData(const IDBKeyData& key)
 {
@@ -281,6 +287,7 @@
 
 }
 
+#if USE(CF)
 static bool decodeKey(const uint8_t*& data, const uint8_t* end, IDBKeyData& result)
 {
     if (!data || data >= end)
@@ -381,6 +388,7 @@
         return false;
     }
 }
+#endif
 
 bool deserializeIDBKeyData(const uint8_t* data, size_t size, IDBKeyData& result)
 {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to