Title: [229235] releases/WebKitGTK/webkit-2.20/Source/WTF
Revision
229235
Author
[email protected]
Date
2018-03-05 02:49:45 -0800 (Mon, 05 Mar 2018)

Log Message

Merge r228953 - warning: unused variable 'InitialBufferSize' in Assertions.cpp
https://bugs.webkit.org/show_bug.cgi?id=183076

Patch by Fujii Hironori <[email protected]> on 2018-02-23
Reviewed by Yusuke Suzuki.

* wtf/Assertions.cpp: Moved the definition of InitialBufferSize to inside #if.

Modified Paths

Diff

Modified: releases/WebKitGTK/webkit-2.20/Source/WTF/ChangeLog (229234 => 229235)


--- releases/WebKitGTK/webkit-2.20/Source/WTF/ChangeLog	2018-03-05 10:49:41 UTC (rev 229234)
+++ releases/WebKitGTK/webkit-2.20/Source/WTF/ChangeLog	2018-03-05 10:49:45 UTC (rev 229235)
@@ -1,3 +1,12 @@
+2018-02-23  Fujii Hironori  <[email protected]>
+
+        warning: unused variable 'InitialBufferSize' in Assertions.cpp
+        https://bugs.webkit.org/show_bug.cgi?id=183076
+
+        Reviewed by Yusuke Suzuki.
+
+        * wtf/Assertions.cpp: Moved the definition of InitialBufferSize to inside #if.
+
 2018-02-22  Yusuke Suzuki  <[email protected]>
 
         Remove currentTime() / currentTimeMS()

Modified: releases/WebKitGTK/webkit-2.20/Source/WTF/wtf/Assertions.cpp (229234 => 229235)


--- releases/WebKitGTK/webkit-2.20/Source/WTF/wtf/Assertions.cpp	2018-03-05 10:49:41 UTC (rev 229234)
+++ releases/WebKitGTK/webkit-2.20/Source/WTF/wtf/Assertions.cpp	2018-03-05 10:49:45 UTC (rev 229235)
@@ -87,8 +87,6 @@
     fputs(buffer, stderr);
 }
 
-static const constexpr unsigned InitialBufferSize { 256 };
-
 WTF_ATTRIBUTE_PRINTF(1, 0)
 static void vprintf_stderr_common(const char* format, va_list args)
 {
@@ -105,6 +103,7 @@
 #pragma clang diagnostic pop
 #endif
         CFIndex length = CFStringGetMaximumSizeForEncoding(CFStringGetLength(str.get()), kCFStringEncodingUTF8);
+        constexpr unsigned InitialBufferSize { 256 };
         Vector<char, InitialBufferSize> buffer(length + 1);
 
         CFStringGetCString(str.get(), buffer.data(), length, kCFStringEncodingUTF8);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to