From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id B9D9F1F55B for ; Mon, 1 Jun 2020 05:19:10 +0000 (UTC) Received: from localhost ([::1]:51012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfcqr-0003yA-UH for normalperson@yhbt.net; Mon, 01 Jun 2020 01:19:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfcql-0003wt-Sg for bug-gnulib@gnu.org; Mon, 01 Jun 2020 01:19:03 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:42370) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfcqk-0005Qr-D0 for bug-gnulib@gnu.org; Mon, 01 Jun 2020 01:19:03 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 656431600C3 for ; Sun, 31 May 2020 22:19:01 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id JbGgYQUIEhKh; Sun, 31 May 2020 22:19:00 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B327F160059; Sun, 31 May 2020 22:19:00 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 0JrTQ5f769KI; Sun, 31 May 2020 22:19:00 -0700 (PDT) Received: from day.example.com (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 8AA5916004F; Sun, 31 May 2020 22:19:00 -0700 (PDT) From: Paul Eggert To: bug-gnulib@gnu.org Subject: [PATCH] read-file-test: pacify --enable-gcc-warnings Date: Sun, 31 May 2020 22:18:57 -0700 Message-Id: <20200601051857.13400-1-eggert@cs.ucla.edu> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=131.179.128.68; envelope-from=eggert@cs.ucla.edu; helo=zimbra.cs.ucla.edu X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/01 01:17:19 X-ACL-Warn: Detected OS = Linux 3.1-3.10 X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paul Eggert Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" * tests/test-read-file.c (test_read_file): Now static. --- ChangeLog | 3 +++ tests/test-read-file.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b7b39272f..4d240e0d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2020-05-31 Paul Eggert =20 + read-file-test: pacify --enable-gcc-warnings + * tests/test-read-file.c (test_read_file): Now static. + tempname: merge from glibc and coreutils Also, merge in Gnulib=E2=80=99s more-recent methods of making it easier to share between Gnulib and glibc, and fix a few randomness diff --git a/tests/test-read-file.c b/tests/test-read-file.c index b37f875b2..7d01ec07c 100644 --- a/tests/test-read-file.c +++ b/tests/test-read-file.c @@ -28,7 +28,7 @@ #define FILE1 "/etc/resolv.conf" #define FILE2 "/dev/null" =20 -int +static int test_read_file (int flags) { struct stat statbuf; --=20 2.17.1