Strict C99: check it in the full config
Ensure that there is a build with -pedantic in the full config, not just in "exotic" configurations. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
d135bbd7a1
commit
313bb50db3
1 changed files with 1 additions and 1 deletions
|
@ -1099,7 +1099,7 @@ test_build_opt () {
|
||||||
info=$1 cc=$2; shift 2
|
info=$1 cc=$2; shift 2
|
||||||
for opt in "$@"; do
|
for opt in "$@"; do
|
||||||
msg "build/test: $cc $opt, $info" # ~ 30s
|
msg "build/test: $cc $opt, $info" # ~ 30s
|
||||||
make CC="$cc" CFLAGS="$opt -Wall -Wextra -Werror"
|
make CC="$cc" CFLAGS="$opt -std=c99 -pedantic -Wall -Wextra -Werror"
|
||||||
# We're confident enough in compilers to not run _all_ the tests,
|
# We're confident enough in compilers to not run _all_ the tests,
|
||||||
# but at least run the unit tests. In particular, runs with
|
# but at least run the unit tests. In particular, runs with
|
||||||
# optimizations use inline assembly whereas runs with -O0
|
# optimizations use inline assembly whereas runs with -O0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue