From patchwork Thu Nov 11 17:15:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 47492 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D765F3858430 for ; Thu, 11 Nov 2021 17:16:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D765F3858430 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1636650979; bh=RmADpeBb+POoW5dVrMPtomIOyzmZw1o4ixntGN97O/s=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=wXpaAQQknbSxK02VvkYivgYxS/51HgaCo5Zi11D2VZN8NzrJcw9WEoKkAtZOFVK3m zwDnQd1bfAuAHh2XzkXa/apJlE5MfFLMIUTbSR39a9OZJ+bMUebH0jMJ8RKzGR8P7J jooNn2lwjD92kqavQHNV9V8Uw5tYi5GxLTYRy8oE= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTPS id 9AB933858410 for ; Thu, 11 Nov 2021 17:15:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9AB933858410 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-477-KiFx3ZTQO0aKzIV8mYBecw-1; Thu, 11 Nov 2021 12:15:46 -0500 X-MC-Unique: KiFx3ZTQO0aKzIV8mYBecw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0277910151E1 for ; Thu, 11 Nov 2021 17:15:46 +0000 (UTC) Received: from t14s.localdomain.com (ovpn-113-202.phx2.redhat.com [10.3.113.202]) by smtp.corp.redhat.com (Postfix) with ESMTP id 38D2760C05; Thu, 11 Nov 2021 17:15:45 +0000 (UTC) To: gcc-patches@gcc.gnu.org Subject: [committed] diagnostic: fix unused variable 'def_tabstop' [PR103129] Date: Thu, 11 Nov 2021 12:15:43 -0500 Message-Id: <20211111171543.1883505-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-13.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: David Malcolm via Gcc-patches From: David Malcolm Reply-To: David Malcolm Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Pushed to trunk as r12-5176-gabdff441a07f55d16e3d0e5ced3123c83d210a0a. gcc/ChangeLog: PR other/103129 * diagnostic-show-locus.c (def_policy): Use def_tabstop. Signed-off-by: David Malcolm --- gcc/diagnostic-show-locus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/diagnostic-show-locus.c b/gcc/diagnostic-show-locus.c index d796085222a..67be213c5a2 100644 --- a/gcc/diagnostic-show-locus.c +++ b/gcc/diagnostic-show-locus.c @@ -693,7 +693,7 @@ static const int def_tabstop = 8; static cpp_char_column_policy def_policy () { - return cpp_char_column_policy (8, cpp_wcwidth); + return cpp_char_column_policy (def_tabstop, cpp_wcwidth); } /* Create some expanded locations for testing layout_range. The filename