From patchwork Sat Dec 16 03:35:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Durigan Junior X-Patchwork-Id: 24975 Received: (qmail 60169 invoked by alias); 16 Dec 2017 03:35:18 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 60152 invoked by uid 89); 16 Dec 2017 03:35:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 16 Dec 2017 03:35:16 +0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 61626820F2 for ; Sat, 16 Dec 2017 03:35:15 +0000 (UTC) Received: from psique.yyz.redhat.com (unused-10-15-17-193.yyz.redhat.com [10.15.17.193]) by smtp.corp.redhat.com (Postfix) with ESMTP id EB51961559; Sat, 16 Dec 2017 03:35:10 +0000 (UTC) From: Sergio Durigan Junior To: GDB Patches Cc: Sergio Durigan Junior Subject: [pushed/obvious] Fix ARI warning on gdb/typeprint.c:whatis_exp Date: Fri, 15 Dec 2017 22:35:05 -0500 Message-Id: <20171216033505.29488-1-sergiodj@redhat.com> X-IsSubscribed: yes 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 * 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 + + * typeprint.c (whatis_exp): Fix ARI warning and reindent "if" + condition. + 2017-12-15 Sergio Durigan Junior Pedro Alves 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;