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.8 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 84F941F66E for ; Sat, 5 Sep 2020 17:57:52 +0000 (UTC) Received: from localhost ([::1]:41350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEcRj-0006IG-9V for normalperson@yhbt.net; Sat, 05 Sep 2020 13:57:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEcRg-0006I3-2r for bug-gnulib@gnu.org; Sat, 05 Sep 2020 13:57:48 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.217]:27617) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEcRd-0002zL-OK for bug-gnulib@gnu.org; Sat, 05 Sep 2020 13:57:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1599328662; s=strato-dkim-0002; d=clisp.org; h=Message-ID:Date:Subject:To:From:X-RZG-CLASS-ID:X-RZG-AUTH:From: Subject:Sender; bh=ucKTar3GR+qr7l1UdVzHbxb2nKNZMHjUKjRfdk6IuH0=; b=luBJ34z4GLB+YUBuqWPGB++JJdQOQNY/lGhqL+x/QvfeWo7vOVJluoD/R+wIPXffQ1 L4MBNm+L/v8Rt1/dKzAYDde3mpt+kmQ4Wun0KM+Pnat2hhzrQNR17BAHL/T/1hrUy8AI /qAOl8Zq0wZdbCiyvbUUZmF9goPvGEBO6yedzLZ660d0ETRMaKwHDss2g03X2hGhoEMw +3+yiVrsO3DlxsQAq4WYJjvq5eKFCh0MK8hSzfT+IXshU7xaZJJSYDieJKQtBcDfqkXs i6WYcbln6fUvUw/NE2yZMWJkbgLxl/DvPR6M1w1ZvVt9GyOgcs10szt7HeDUJKrnSlIK KgfQ== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOHqfyyPs=" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 46.10.7 DYNA|AUTH) with ESMTPSA id z05f0fw85HvgBq9 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Sat, 5 Sep 2020 19:57:42 +0200 (CEST) From: Bruno Haible To: bug-gnulib@gnu.org Subject: Use module 'c99' when needed for subobject initializers Date: Sat, 05 Sep 2020 19:57:41 +0200 Message-ID: <3772256.3kEAS0PoE6@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-186-generic; KDE/5.18.0; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=81.169.146.217; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/05 13:57:42 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no 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: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" When compiling a gnulib testdir with CC="gcc -std=gnu90 -pedantic" (without the 'c99' module) I see these warnings: tempname.c:215:7: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic] tempname.c:216:7: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic] tempname.c:217:7: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic] regcomp.c:562:3: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic] regcomp.c:3709:27: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic] regcomp.c:3709:51: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic] regcomp.c:3800:20: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic] regexec.c:600:31: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic] test-nstrftime.c:230:25: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic] test-nstrftime.c:257:20: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic] test-nstrftime.c:257:44: warning: ISO C90 forbids specifying subobject to initialize [-Wpedantic] Thus, the modules tempname regex nstrftime-tests need a dependency to 'c99'. 2020-09-05 Bruno Haible Use module 'c99' when needed for subobject initializer syntax. * modules/tempname (Depends-on): Add c99. * modules/nstrftime-tests (Depends-on): Likewise. diff --git a/modules/nstrftime-tests b/modules/nstrftime-tests index 4089771..ed2430a 100644 --- a/modules/nstrftime-tests +++ b/modules/nstrftime-tests @@ -4,6 +4,7 @@ tests/macros.h Depends-on: atoll +c99 intprops strerror diff --git a/modules/tempname b/modules/tempname index 794a763..d55f4ce 100644 --- a/modules/tempname +++ b/modules/tempname @@ -8,6 +8,7 @@ lib/tempname.h m4/tempname.m4 Depends-on: +c99 extensions fcntl-h getrandom