* [pushed/obvious] Fix ARI warning on gdb/typeprint.c:whatis_exp
@ 2017-12-16 3:35 Sergio Durigan Junior
0 siblings, 0 replies; only message in thread
From: Sergio Durigan Junior @ 2017-12-16 3:35 UTC (permalink / raw)
To: GDB Patches; +Cc: Sergio Durigan Junior
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.
---
gdb/ChangeLog | 5 +++++
gdb/typeprint.c | 6 +++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2200f63ded..bd2934e32b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+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>
diff --git a/gdb/typeprint.c b/gdb/typeprint.c
index 15a62bef3c..0a7590b66d 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;
--
2.14.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-12-16 3:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-16 3:35 [pushed/obvious] Fix ARI warning on gdb/typeprint.c:whatis_exp Sergio Durigan Junior
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).