This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[obv] Remove extraneous parentheses.


Hi,
When compile gdb with clang, the following warning/error is got,

gdb/f-valprint.c:131:32: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses]

it is reasonable to remove these extraneous parentheses.  Patch is
applied.

gdb:

2012-11-26  Yao Qi  <yao@codesourcery.com>

	* f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
	extraneous parentheses.
---
 gdb/f-valprint.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c
index c3d2383..b40b8fa 100644
--- a/gdb/f-valprint.c
+++ b/gdb/f-valprint.c
@@ -128,7 +128,7 @@ f77_create_arrayprint_offset_tbl (struct type *type, struct ui_file *stream)
 
   tmp_type = type;
 
-  while ((TYPE_CODE (tmp_type) == TYPE_CODE_ARRAY))
+  while (TYPE_CODE (tmp_type) == TYPE_CODE_ARRAY)
     {
       upper = f77_get_upperbound (tmp_type);
       lower = f77_get_lowerbound (tmp_type);
-- 
1.7.7.6


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]