diff options
author | Nicholas Clark <nick@ccl4.org> | 2021-06-11 12:17:44 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2021-06-11 12:17:44 +0000 |
commit | 7886147fdc48d029686af31c71c808adad1a5737 (patch) | |
tree | 7a2316010bd22fc207ce40452e2e07ab65c9c97b /cflags.SH | |
parent | 7d4b8f5eb75f985fe5514ff9436ae487d11c0c2d (diff) | |
download | perl-7886147fdc48d029686af31c71c808adad1a5737.tar.gz |
Add -Werror=vla by default. C99 variable-length arrays are dangerous.
C11 makes them optional, and MSVC doesn't support them. We can't use them
(but even if we could, we should not).
Diffstat (limited to 'cflags.SH')
-rwxr-xr-x | cflags.SH | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -180,6 +180,7 @@ Intel*) ;; # # Is that you, Intel C++? # *) warns="-std=c89 -ansi $pedantic \ -Werror=pointer-arith \ + -Werror=vla \ -Wextra -W \ -Wc++-compat -Wwrite-strings" # declaration after statement is normal in C++ rather than an |