From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-5.5 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 0D84B1F89C for ; Sun, 22 Jan 2017 02:42:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751039AbdAVCmP (ORCPT ); Sat, 21 Jan 2017 21:42:15 -0500 Received: from castro.crustytoothpaste.net ([75.10.60.170]:39232 "EHLO castro.crustytoothpaste.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750886AbdAVCmI (ORCPT ); Sat, 21 Jan 2017 21:42:08 -0500 Received: from genre.crustytoothpaste.net (unknown [IPv6:2001:470:b978:101:254c:7dd1:74c7:cde0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by castro.crustytoothpaste.net (Postfix) with ESMTPSA id 3606A280AF; Sun, 22 Jan 2017 02:42:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=crustytoothpaste.net; s=default; t=1485052926; bh=Idy/ULemsTZHEe7FB4WTjyfACxjeXvs+7fogbk2yyEY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QqdaUU6hPp6oXnOwn/gsUI2AqyQSRX0zl6amytxQuZvJiBZI6mrDSAcGsNf1D2ABh /4Di3yubFJyUs/U4Kb8+cMqdPJvS/cTWtA+JPMYhslKruEsClu5gGCFCKk7fzLaBl7 J7chyZQzEc6xJg/mtDUXETIDtbOgx05mpNp5ESPv1pqmOtYhhm7CSEoQlpNBpxaxEZ duGWAAHPD6lvdn0HTrc+e+eh+GPjR0cawBJafCJvZBWeQXweSmWo+M+3RwvvHZOllY 9/XOKFHm+d1KvzQxE81CqH8xDRJy4j6QJ5KRyLQW6Z++g0lCeb18Bi38EeexGIgTfq RGyyEP/V0EKIIflZODAsB2UiMAzFmZURhedzltzCekwrDvdOOzClK+S535KEnc8nLw ZXm5M+s1OYY7bciVS8oBKBsGuppaK+9aNaucaR0rkEFuJoojUH8agZ3lYbP5CuD5Kb vSmJ7pT02R0TwNLanHeVD/v0g6XkJc7n+qncAkKvfYdhzX2OjYI From: "brian m. carlson" To: git@vger.kernel.org Cc: Johannes Schindelin , Jeff King Subject: [PATCH v2 3/7] Documentation: remove unneeded argument in cat-texi.perl Date: Sun, 22 Jan 2017 02:41:52 +0000 Message-Id: <20170122024156.284180-4-sandals@crustytoothpaste.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170122024156.284180-1-sandals@crustytoothpaste.net> References: <20170122024156.284180-1-sandals@crustytoothpaste.net> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org The newly-added use of the warnings pragma exposes that the $menu[0] argument to printf has long been silently ignored, since there is no format specifier for it. It doesn't appear that the argument is actually needed, either: there is no reason to insert the name of one particular documentation page anywhere in the header that's being generated. Remove the unused argument, and since the format specification functionality is no longer needed, convert the printf to a simple print. Signed-off-by: brian m. carlson --- Documentation/cat-texi.perl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/cat-texi.perl b/Documentation/cat-texi.perl index 1bc84d3c7..14d2f8341 100755 --- a/Documentation/cat-texi.perl +++ b/Documentation/cat-texi.perl @@ -20,7 +20,7 @@ while () { } close $tmp; -printf '\input texinfo +print '\input texinfo @setfilename gitman.info @documentencoding UTF-8 @dircategory Development @@ -31,7 +31,7 @@ printf '\input texinfo @top Git Manual Pages @documentlanguage en @menu -', $menu[0]; +'; for (@menu) { print "* ${_}::\n";