diff options
author | Pádraig Brady <P@draigBrady.com> | 2019-01-13 22:11:11 -0800 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2019-01-19 21:15:01 -0800 |
commit | d26dece5d86465210ffc2db205eea9140a28591d (patch) | |
tree | 4cbcc7d85cc5a125334092ee41bf3fd14f444180 /configure.ac | |
parent | 94fa0aa0d0e2f6a98e1c3086da9d64a1ceba9846 (diff) | |
download | coreutils-d26dece5d86465210ffc2db205eea9140a28591d.tar.gz |
build: ensure VLAs are not used
Fail developer builds if VLAs are used,
as there are portability concerns to consider with them.
* configure.ac: Enable -Wvla which is implicit in the full list added.
* m4/jm-macros.m4: Define GNULIB_NO_VLA which disables use of
VLAs within gnulib code.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 13bb167b0..23086cd64 100644 --- a/configure.ac +++ b/configure.ac @@ -130,7 +130,6 @@ if test "$gl_gcc_warnings" = yes; then nw="$nw -Wredundant-decls" # openat.h declares e.g., mkdirat nw="$nw -Wlogical-op" # Too many warnings until GCC 4.8.0 nw="$nw -Wformat-nonliteral" # who.c and pinky.c strftime uses - nw="$nw -Wvla" # warnings in gettext.h nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__ nw="$nw -Wswitch-enum" # Too many warnings for now nw="$nw -Wswitch-default" # Too many warnings for now |