[prev in list] [next in list] [prev in thread] [next in thread]
List: gdb-cvs
Subject: [binutils-gdb] Fix ARI warning on gdb/typeprint.c:whatis_exp
From: Sergio Durigan Junior <sergiodj () sourceware ! org>
Date: 2017-12-16 3:34:27
Message-ID: 20171216033427.59588.qmail () sourceware ! org
[Download RAW message or body]
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=46afe196ec282505dcd2727725bfb5ef87ea4b21
commit 46afe196ec282505dcd2727725bfb5ef87ea4b21
Author: Sergio Durigan Junior <sergiodj@redhat.com>
Date: Fri Dec 15 22:33:07 2017 -0500
Fix ARI warning on gdb/typeprint.c:whatis_exp
I forgot to indent the "if" clause properly and put the "&&" at the
beginning of the line, so ARI complained. This commit fixed it.
gdb/ChangeLog:
2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
* typeprint.c (whatis_exp): Fix ARI warning and reindent "if"
condition.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/typeprint.c | 6 +++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2200f63..bd2934e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,4 +1,9 @@
2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * typeprint.c (whatis_exp): Fix ARI warning and reindent "if"
+ condition.
+
+2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
Pedro Alves <palves@redhat.com>
PR cli/16224
diff --git a/gdb/typeprint.c b/gdb/typeprint.c
index 15a62be..0a7590b 100644
--- a/gdb/typeprint.c
+++ b/gdb/typeprint.c
@@ -446,9 +446,9 @@ whatis_exp (const char *exp, int show)
{
/* Filter out languages which don't implement the
feature. */
- if (show > 0 &&
- (current_language->la_language == language_c
- || current_language->la_language == language_cplus))
+ if (show > 0
+ && (current_language->la_language == language_c
+ || current_language->la_language == language_cplus))
{
flags.print_offsets = 1;
flags.print_typedefs = 0;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic