[EFL] Fix compile warning
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Aug 2012 13:46:37 +0000 (13:46 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Aug 2012 13:46:37 +0000 (13:46 +0000)
https://bugs.webkit.org/show_bug.cgi?id=94930

Patch by Kangil Han <kangil.han@samsung.com> 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]

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

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/efl/ewk_back_forward_list.cpp

index c305516..1d9e7ea 100644 (file)
@@ -1,3 +1,16 @@
+2012-08-24  Kangil Han  <kangil.han@samsung.com>
+
+        [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  <mikhail.pozdnyakov@intel.com>
 
         [EFL][WK2] Back-forward list API needs extension
index c3c7c1a..f6bd0a7 100644 (file)
@@ -145,7 +145,7 @@ Eina_List* ewk_back_forward_list_n_back_items_copy(const Ewk_Back_Forward_List*
 
     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 @@ Eina_List* ewk_back_forward_list_n_forward_items_copy(const Ewk_Back_Forward_Lis
 
     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());