From 3f87271ea6f7c571e7614ef3f984eeba212093b4 Mon Sep 17 00:00:00 2001 From: Pan7 Date: Thu, 27 Apr 2017 21:03:13 +0200 Subject: [PATCH 1/2] Fix extraneous parentheses warning --- plugins/vfspk3/unzip.cpp | 2 +- plugins/vfsqlpk3/unzip.cpp | 2 +- radiant/xywindow.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/vfspk3/unzip.cpp b/plugins/vfspk3/unzip.cpp index aa5c2246..27bf3023 100644 --- a/plugins/vfspk3/unzip.cpp +++ b/plugins/vfspk3/unzip.cpp @@ -2074,7 +2074,7 @@ extern int unzReadCurrentFile (unzFile file, void *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/plugins/vfsqlpk3/unzip.cpp b/plugins/vfsqlpk3/unzip.cpp index b263c320..18088935 100644 --- a/plugins/vfsqlpk3/unzip.cpp +++ b/plugins/vfsqlpk3/unzip.cpp @@ -2071,7 +2071,7 @@ extern int unzReadCurrentFile (unzFile file, void *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/radiant/xywindow.cpp b/radiant/xywindow.cpp index 4d68ad6d..cc5d332b 100644 --- a/radiant/xywindow.cpp +++ b/radiant/xywindow.cpp @@ -1010,7 +1010,7 @@ rectangle_t rectangle_from_area_xy(){ void update_xor_rectangle_xy( XORRectangle& xor_rectangle ){ rectangle_t rectangle; - if ( ( g_qeglobals.d_select_mode == sel_area ) ) { + if ( g_qeglobals.d_select_mode == sel_area ) { rectangle = rectangle_from_area_xy(); } xor_rectangle.set( rectangle ); From 81a1776bbd35e55f8512a3c14ac55c9f36f0ebad Mon Sep 17 00:00:00 2001 From: Pan7 Date: Thu, 27 Apr 2017 21:58:43 +0200 Subject: [PATCH 2/2] Fix more extraneous parentheses warnings --- libs/picomodel/pm_md2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/picomodel/pm_md2.c b/libs/picomodel/pm_md2.c index c1011cfb..c49481bc 100644 --- a/libs/picomodel/pm_md2.c +++ b/libs/picomodel/pm_md2.c @@ -519,7 +519,7 @@ static picoModel_t *_md2_load( PM_PARAMS_LOAD ){ continue; } - else if ( ( p_index_LUT[p_md2Triangle->index_xyz[j]].next == NULL ) ) { // Not equal to Main entry, and no LL entry + else if ( p_index_LUT[p_md2Triangle->index_xyz[j]].next == NULL ) { // Not equal to Main entry, and no LL entry // Add first entry of LL from Main p_index_LUT2 = (index_LUT_t *)_pico_alloc( sizeof( index_LUT_t ) ); if ( p_index_LUT2 == NULL ) {