From 780025511ed6f1c2d1750ab96da657bdecea8916 Mon Sep 17 00:00:00 2001 From: Sanjeev BA Date: Wed, 7 Mar 2012 16:25:43 +0000 Subject: [PATCH] Fix warnings when ewk not installed. Signed-off-by: Sanjeev BA SVN revision: 68994 --- legacy/elementary/src/lib/elm_web.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/legacy/elementary/src/lib/elm_web.c b/legacy/elementary/src/lib/elm_web.c index 809b2949dc..962fd11b77 100644 --- a/legacy/elementary/src/lib/elm_web.c +++ b/legacy/elementary/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;