From: Radek Kintop Date: Wed, 19 Apr 2017 14:27:38 +0000 (+0200) Subject: Warnings removed X-Git-Tag: submit/tizen/20170421.015410~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7755a0afaeb083225457f96dcfc624ae5b3ee7c9;p=profile%2Ftv%2Fapps%2Fnative%2Fair_settings.git Warnings removed Change-Id: I1e010c7ba91d95bc0e0bb91d6de65f3c0ab800ec Signed-off-by: Radek Kintop --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f7d494b..606c686 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -113,8 +113,7 @@ FOREACH(flag ${PKGS_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") ENDFOREACH(flag) -#SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -Werror") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -Werror") SET(GC_SECTIONS_FLAGS "-fdata-sections -ffunction-sections -Wl,--gc-sections -Werror-implicit-function-declaration -Wparentheses -feliminate-unused-debug-types -pipe -Wall -Wp, -D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fmessage-length=0 -fdiagnostics-color=never -Wno-deprecated-declarations") INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include) diff --git a/src/data/system/data_wireless.c b/src/data/system/data_wireless.c index b9dd0df..60a9e57 100644 --- a/src/data/system/data_wireless.c +++ b/src/data/system/data_wireless.c @@ -21,7 +21,7 @@ #include "common/datamgr.h" struct _priv { - wifi_manager_h *wifi; + wifi_manager_h wifi; Eina_List *list; void (*event_cb)(enum event_type type, void *data); void *cb_data; @@ -81,6 +81,8 @@ static const char *wifi_manager_error_to_string(wifi_manager_error_e err_type) return "PERMISSION_DENIED"; case WIFI_MANAGER_ERROR_NOT_SUPPORTED: return "NOT_SUPPORTED"; + default: + return "UNKNOWN"; } return "UNKNOWN"; diff --git a/src/view/system/view_clock.c b/src/view/system/view_clock.c index c4499c2..fb3b41f 100755 --- a/src/view/system/view_clock.c +++ b/src/view/system/view_clock.c @@ -201,7 +201,7 @@ static void _keypad_up_cb(void *data, Evas_Object *obj, void *event_info) -static input_handler _auto_manual_setup_input_handler = { +__attribute__((unused)) static input_handler _auto_manual_setup_input_handler = { .mouse_move = _auto_manual_mouse_move_cb, .key_down = _auto_manual_setup_key_down_cb, .clicked = _auto_manual_setup_clicked_cb, @@ -296,7 +296,7 @@ static void _draw_setup_type_popup(clock_view_priv_data *priv) static void _set_spinner_button_style(Evas_Object *spinner) { - Evas_Object *button = elm_object_part_content_get(spinner, "elm.swallow.inc_button"); + __attribute__((unused)) Evas_Object *button = elm_object_part_content_get(spinner, "elm.swallow.inc_button"); elm_object_style_set(spinner, "settings.datetime"); button = elm_object_part_content_get(spinner, "elm.swallow.dec_button"); @@ -426,7 +426,7 @@ static void _set_datetime_focus_chain(Evas_Object *datetime, int start_field, in static void _dbg_obj_focus(Evas_Object *item, int num) { Evas_Object *focus_to; - int i; + __attribute__((unused)) int i; const char *text; const char *type; Elm_Focus_Direction dir;