bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* Use module 'c99' when needed for variadic macros with '...' syntax
@ 2020-09-05 18:05 Bruno Haible
  0 siblings, 0 replies; only message in thread
From: Bruno Haible @ 2020-09-05 18:05 UTC (permalink / raw)
  To: 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  <bruno@clisp.org>

	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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-05 18:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-05 18:05 Use module 'c99' when needed for variadic macros with '...' syntax Bruno Haible

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).