Fix ARI warning on gdb/typeprint.c:whatis_exp
authorSergio Durigan Junior <sergiodj@redhat.com>
Sat, 16 Dec 2017 03:33:07 +0000 (22:33 -0500)
committerSergio Durigan Junior <sergiodj@redhat.com>
Sat, 16 Dec 2017 03:33:07 +0000 (22:33 -0500)
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
gdb/typeprint.c

index 2200f63dedced113ce3bffad29d04dee6ad76859..bd2934e32b743bad8196bb0c775ca5b5bcc676ac 100644 (file)
@@ -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>
 
index 15a62bef3cb090a28fc530f47901c3efc235fa74..0a7590b66dc24e0b11467f38c5aff5f4c2cb4fe5 100644 (file)
@@ -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;