[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Use module 'c99' when needed for subobject initializers
From: |
Bruno Haible |
Subject: |
Use module 'c99' when needed for subobject initializers |
Date: |
Sat, 05 Sep 2020 19:57:41 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-186-generic; KDE/5.18.0; x86_64; ; ) |
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 <bruno@clisp.org>
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Use module 'c99' when needed for subobject initializers,
Bruno Haible <=