Use UNUSED_PARAM instead of the void casting to suppress unused parameter warnings.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Apr 2015 01:25:08 +0000 (01:25 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Apr 2015 01:25:08 +0000 (01:25 +0000)
https://bugs.webkit.org/show_bug.cgi?id=143750

Patch by Sungmann Cho <sungmann.cho@navercorp.com> on 2015-04-16
Reviewed by Darin Adler.

No new tests, no behavior change.

* WebProcess/Notifications/NotificationPermissionRequestManager.cpp:
(WebKit::NotificationPermissionRequestManager::NotificationPermissionRequestManager):

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

Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/Notifications/NotificationPermissionRequestManager.cpp

index 0773a4e..8edcb6e 100644 (file)
@@ -1,3 +1,15 @@
+2015-04-16  Sungmann Cho  <sungmann.cho@navercorp.com>
+
+        Use UNUSED_PARAM instead of the void casting to suppress unused parameter warnings.
+        https://bugs.webkit.org/show_bug.cgi?id=143750
+
+        Reviewed by Darin Adler.
+
+        No new tests, no behavior change.
+
+        * WebProcess/Notifications/NotificationPermissionRequestManager.cpp:
+        (WebKit::NotificationPermissionRequestManager::NotificationPermissionRequestManager):
+
 2015-04-16  Brady Eidson  <beidson@apple.com>
 
         Compiling a content extension fails when user's home directory is on a different volume from /var/tmp.
index 2ab2ffa..c479502 100644 (file)
@@ -57,13 +57,16 @@ PassRefPtr<NotificationPermissionRequestManager> NotificationPermissionRequestMa
     return adoptRef(new NotificationPermissionRequestManager(page));
 }
 
-NotificationPermissionRequestManager::NotificationPermissionRequestManager(WebPage* page)
 #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
+NotificationPermissionRequestManager::NotificationPermissionRequestManager(WebPage* page)
     : m_page(page)
-#endif
 {
-    (void)page;
 }
+#else
+NotificationPermissionRequestManager::NotificationPermissionRequestManager(WebPage*)
+{
+}
+#endif
 
 #if ENABLE(NOTIFICATIONS)
 void NotificationPermissionRequestManager::startRequest(SecurityOrigin* origin, PassRefPtr<NotificationPermissionCallback> callback)