From 1ff0107bd46ce77b342fb6f4c52254f639923425 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 2 Jul 2013 15:23:20 +0200 Subject: [PATCH] Clang warnings fixed 'Equality comparison with extraneous parentheses' semantics warnings in Clang fixed --- deps/minizip/unzip.c | 2 +- frontend/menu/rgui.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deps/minizip/unzip.c b/deps/minizip/unzip.c index 5c996a22c2..13179bcc83 100644 --- a/deps/minizip/unzip.c +++ b/deps/minizip/unzip.c @@ -1194,7 +1194,7 @@ int unzReadCurrentFile (unzFile file, voidpf buf, unsigned len) return UNZ_PARAMERROR; - if ((pfile_in_zip_read_info->read_buffer == NULL)) + if (pfile_in_zip_read_info->read_buffer == NULL) return UNZ_END_OF_LIST_OF_FILE; if (len==0) return 0; diff --git a/frontend/menu/rgui.c b/frontend/menu/rgui.c index 2f08ee1143..3bebf6ac6e 100644 --- a/frontend/menu/rgui.c +++ b/frontend/menu/rgui.c @@ -2336,11 +2336,11 @@ static int rgui_settings_iterate(rgui_handle_t *rgui, rgui_action_t action) menu_type == RGUI_SETTINGS_OPEN_HISTORY)) { rgui->need_refresh = false; - if ((menu_type == RGUI_SETTINGS_INPUT_OPTIONS)) + if (menu_type == RGUI_SETTINGS_INPUT_OPTIONS) rgui_settings_controller_populate_entries(rgui); - else if ((menu_type == RGUI_SETTINGS_PATH_OPTIONS)) + else if (menu_type == RGUI_SETTINGS_PATH_OPTIONS) rgui_settings_path_populate_entries(rgui); - else if ((menu_type == RGUI_SETTINGS_OPTIONS)) + else if (menu_type == RGUI_SETTINGS_OPTIONS) rgui_settings_options_populate_entries(rgui); else if (menu_type == RGUI_SETTINGS_CORE_OPTIONS) rgui_settings_core_options_populate_entries(rgui);