Rename UNUSED to BUNUSED
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Apr 2018 01:42:45 +0000 (01:42 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Apr 2018 01:42:45 +0000 (01:42 +0000)
https://bugs.webkit.org/show_bug.cgi?id=184093

Reviewed by Yusuke Suzuki.

Source/bmalloc:

* bmalloc/BAssert.h:
* bmalloc/VMAllocate.h:
(bmalloc::vmValidate):
(bmalloc::vmValidatePhysical):

Source/WebKit:

* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _getApplicationManifestWithCompletionHandler:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@230463 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm
Source/bmalloc/ChangeLog
Source/bmalloc/bmalloc/BAssert.h
Source/bmalloc/bmalloc/VMAllocate.h

index 5970cb8..94fa098 100644 (file)
@@ -1,3 +1,13 @@
+2018-04-09  Michael Catanzaro  <mcatanzaro@igalia.com>
+
+        Rename UNUSED to BUNUSED
+        https://bugs.webkit.org/show_bug.cgi?id=184093
+
+        Reviewed by Yusuke Suzuki.
+
+        * UIProcess/API/Cocoa/WKWebView.mm:
+        (-[WKWebView _getApplicationManifestWithCompletionHandler:]):
+
 2018-04-09  Timothy Hatcher  <timothy@apple.com>
 
         Add support for setting a background color on WKWebView and WKView
index 43591d5..5960c51 100644 (file)
@@ -4477,7 +4477,7 @@ static inline WebCore::LayoutMilestones layoutMilestones(_WKRenderingProgressEve
 {
 #if ENABLE(APPLICATION_MANIFEST)
     _page->getApplicationManifest([completionHandler = makeBlockPtr(completionHandler)](const std::optional<WebCore::ApplicationManifest>& manifest, WebKit::CallbackBase::Error error) {
-        UNUSED(error);
+        UNUSED_PARAM(error);
         if (completionHandler) {
             if (manifest) {
                 auto apiManifest = API::ApplicationManifest::create(*manifest);
index 8279393..54bb3f1 100644 (file)
@@ -1,3 +1,15 @@
+2018-04-09  Michael Catanzaro  <mcatanzaro@igalia.com>
+
+        Rename UNUSED to BUNUSED
+        https://bugs.webkit.org/show_bug.cgi?id=184093
+
+        Reviewed by Yusuke Suzuki.
+
+        * bmalloc/BAssert.h:
+        * bmalloc/VMAllocate.h:
+        (bmalloc::vmValidate):
+        (bmalloc::vmValidatePhysical):
+
 2018-04-08  Yusuke Suzuki  <utatane.tea@gmail.com>
 
         Use alignas instead of compiler-specific attributes
index c097514..572d4b5 100644 (file)
 } while (0)
 #endif
 
-#define UNUSED(x) ((void)x)
+#define BUNUSED(x) ((void)x)
 
 // ===== Release build =====
 
index 23ebc20..eb72f05 100644 (file)
@@ -76,7 +76,7 @@ inline size_t vmSize(size_t size)
 
 inline void vmValidate(size_t vmSize)
 {
-    UNUSED(vmSize);
+    BUNUSED(vmSize);
     BASSERT(vmSize);
     BASSERT(vmSize == roundUpToMultipleOf(vmPageSize(), vmSize));
 }
@@ -85,7 +85,7 @@ inline void vmValidate(void* p, size_t vmSize)
 {
     vmValidate(vmSize);
     
-    UNUSED(p);
+    BUNUSED(p);
     BASSERT(p);
     BASSERT(p == mask(p, ~(vmPageSize() - 1)));
 }
@@ -104,7 +104,7 @@ inline size_t vmPageSizePhysical()
 
 inline void vmValidatePhysical(size_t vmSize)
 {
-    UNUSED(vmSize);
+    BUNUSED(vmSize);
     BASSERT(vmSize);
     BASSERT(vmSize == roundUpToMultipleOf(vmPageSizePhysical(), vmSize));
 }
@@ -113,7 +113,7 @@ inline void vmValidatePhysical(void* p, size_t vmSize)
 {
     vmValidatePhysical(vmSize);
     
-    UNUSED(p);
+    BUNUSED(p);
     BASSERT(p);
     BASSERT(p == mask(p, ~(vmPageSizePhysical() - 1)));
 }