Title: [126581] trunk/Source/WebKit2
Revision
126581
Author
[email protected]
Date
2012-08-24 06:46:37 -0700 (Fri, 24 Aug 2012)

Log Message

[EFL] Fix compile warning
https://bugs.webkit.org/show_bug.cgi?id=94930

Patch by Kangil Han <[email protected]> on 2012-08-24
Reviewed by Kenneth Rohde Christiansen.

Fixed compile warning.

* UIProcess/API/efl/ewk_back_forward_list.cpp:
(ewk_back_forward_list_n_back_items_copy): NULL used in arithmetic [-Wpointer-arith]
(ewk_back_forward_list_n_forward_items_copy): NULL used in arithmetic [-Wpointer-arith]

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (126580 => 126581)


--- trunk/Source/WebKit2/ChangeLog	2012-08-24 13:30:11 UTC (rev 126580)
+++ trunk/Source/WebKit2/ChangeLog	2012-08-24 13:46:37 UTC (rev 126581)
@@ -1,3 +1,16 @@
+2012-08-24  Kangil Han  <[email protected]>
+
+        [EFL] Fix compile warning
+        https://bugs.webkit.org/show_bug.cgi?id=94930
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        Fixed compile warning.
+
+        * UIProcess/API/efl/ewk_back_forward_list.cpp:
+        (ewk_back_forward_list_n_back_items_copy): NULL used in arithmetic [-Wpointer-arith]
+        (ewk_back_forward_list_n_forward_items_copy): NULL used in arithmetic [-Wpointer-arith]
+
 2012-08-24  Mikhail Pozdnyakov  <[email protected]>
 
         [EFL][WK2] Back-forward list API needs extension

Modified: trunk/Source/WebKit2/UIProcess/API/efl/ewk_back_forward_list.cpp (126580 => 126581)


--- trunk/Source/WebKit2/UIProcess/API/efl/ewk_back_forward_list.cpp	2012-08-24 13:30:11 UTC (rev 126580)
+++ trunk/Source/WebKit2/UIProcess/API/efl/ewk_back_forward_list.cpp	2012-08-24 13:46:37 UTC (rev 126581)
@@ -145,7 +145,7 @@
 
     if (limit == -1)
         limit = WKBackForwardListGetBackListCount(wkList);
-    EINA_SAFETY_ON_NULL_RETURN_VAL(limit >= 0, 0);
+    EINA_SAFETY_ON_FALSE_RETURN_VAL(limit >= 0, 0);
     WKRetainPtr<WKArrayRef> backList(AdoptWK, WKBackForwardListCopyBackListWithLimit(wkList, limit));
 
     return createEinaList(list, backList.get());
@@ -157,7 +157,7 @@
 
     if (limit == -1)
         limit = WKBackForwardListGetForwardListCount(wkList);
-    EINA_SAFETY_ON_NULL_RETURN_VAL(limit >= 0, 0);
+    EINA_SAFETY_ON_FALSE_RETURN_VAL(limit >= 0, 0);
     WKRetainPtr<WKArrayRef> forwardList(AdoptWK, WKBackForwardListCopyForwardListWithLimit(wkList, limit));
 
     return createEinaList(list, forwardList.get());
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to