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,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 8EC781F66E for ; Sat, 5 Sep 2020 18:05:10 +0000 (UTC) Received: from localhost ([::1]:44710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEcYn-0008SX-E5 for normalperson@yhbt.net; Sat, 05 Sep 2020 14:05:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEcYk-0008On-2m for bug-gnulib@gnu.org; Sat, 05 Sep 2020 14:05:06 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.23]:29143) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEcYi-0003uZ-DK for bug-gnulib@gnu.org; Sat, 05 Sep 2020 14:05:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1599329101; 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=5NO2x8ASw68VHdZyUu1FFG00iwHbZqJ6Y4tAoa8zx8A=; b=WomDEYb3+QJKfj/Ew0zIN1atbdZYjXNEqFM1kkSKnpsC8jeKaEPU4zEkn/HRR9ono8 VTgzWj5wfK6f7tU2jZ0c0xqkVSI9yo9pvJGwrQEu0snlhxlh7FOM4yz95FAPCYP4aS+M xb8SpkpNBFJBsoDfsrhFBegT+NXK0+HJ54rMoGyBnJG14lTbK4UzwG7ow4kvribohT2D D5UDJiZQAtO+YI7wXpuILTNormWkDHP6eWUVXmgXl5vhJ5yoJ1Mq7TfL5Cg3rN0gKzc2 TqNuM/lOOuhMspzCDmkVQKdi5Fw+YHCtwJlirr67NPHi/Y1SLxuGBfO0UqdSOo2HZUJH 80Yw== 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 z05f0fw85I50Bqw (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 20:05:00 +0200 (CEST) From: Bruno Haible To: bug-gnulib@gnu.org Subject: Use module 'c99' when needed for variadic macros with '...' syntax Date: Sat, 05 Sep 2020 20:05:00 +0200 Message-ID: <9537780.Y9riU2t58W@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=85.215.255.23; 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 14:05:01 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_H3=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: ./malloc/scratch_buffer.h:107:55: warning: ISO C99 requires at least one argument for the "..." in a variadic macro ./malloc/scratch_buffer.h:124:56: warning: ISO C99 requires at least one argument for the "..." in a variadic macro ./malloc/scratch_buffer.h:95:46: warning: ISO C99 requires at least one argument for the "..." in a variadic macro sm3.c:409:48: warning: ISO C99 requires at least one argument for the "..." in a variadic macro Thus, the modules 'scratch_buffer' and 'crypto/sm3' are effectively already using C11. C90 compilers surely will reject this syntax. 2020-09-05 Bruno Haible Use module 'c99' when needed for variadic macros with '...' syntax. * modules/crypto/sm3 (Depends-on): Add c99. diff --git a/modules/crypto/sm3 b/modules/crypto/sm3 index 007fbc4..3df7d88 100644 --- a/modules/crypto/sm3 +++ b/modules/crypto/sm3 @@ -8,6 +8,7 @@ m4/sm3.m4 Depends-on: byteswap +c99 extern-inline stdalign stdint