From: sanjeev Date: Wed, 7 Mar 2012 16:25:43 +0000 (+0000) Subject: Fix warnings when ewk not installed. X-Git-Tag: REL_F_I9500_20120323_1~17^2~179 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef62cf40e5f07daa66b4b26e5c88d35dd6fb76d3;p=framework%2Fuifw%2Felementary.git Fix warnings when ewk not installed. Signed-off-by: Sanjeev BA git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@68994 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elm_web.c b/src/lib/elm_web.c index 809b294..962fd11 100644 --- a/src/lib/elm_web.c +++ b/src/lib/elm_web.c @@ -1908,6 +1908,14 @@ elm_web_window_features_property_get(const Elm_Web_Window_Features *wf, Elm_Web_ break; } #else + + if (!wf) return EINA_FALSE; + if (flag==ELM_WEB_WINDOW_FEATURE_TOOLBAR) + { + //TODO Handle unused variable warnings when + //ewk is not installed. + } + /* What to do with these ? (void)wf; @@ -1921,6 +1929,7 @@ elm_web_window_features_property_get(const Elm_Web_Window_Features *wf, Elm_Web_ */ #endif + return EINA_FALSE; } EAPI void @@ -1931,6 +1940,7 @@ elm_web_window_features_region_get(const Elm_Web_Window_Features *wf, Evas_Coord x, y, w, h); #else + if (!wf || !x || !y || !w || !h) return; /* What to do with these ? (void)wf;