diff options
| author | Cory Fields <[email protected]> | 2017-02-21 11:56:07 -0500 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-02-23 10:49:07 +0100 |
| commit | 749fe95fdc979612f41b4b4ee0f58ac1bb425913 (patch) | |
| tree | 2c80bd5782fb0f0c7b0d70eabeda876a59915e17 /configure.ac | |
| parent | qa: Check return code when stopping nodes (diff) | |
| download | discoin-749fe95fdc979612f41b4b4ee0f58ac1bb425913.tar.xz discoin-749fe95fdc979612f41b4b4ee0f58ac1bb425913.zip | |
build: warn about variable length arrays
Github-Pull: #9789
Rebased-From: b602fe0f7372256bd2bc8c116d23dee3253882f9
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 2b2a001d5..e4f8f6f6e 100644 --- a/configure.ac +++ b/configure.ac @@ -210,6 +210,7 @@ if test "x$CXXFLAGS_overridden" = "xno"; then AX_CHECK_COMPILE_FLAG([-Wall],[CXXFLAGS="$CXXFLAGS -Wall"],,[[$CXXFLAG_WERROR]]) AX_CHECK_COMPILE_FLAG([-Wextra],[CXXFLAGS="$CXXFLAGS -Wextra"],,[[$CXXFLAG_WERROR]]) AX_CHECK_COMPILE_FLAG([-Wformat],[CXXFLAGS="$CXXFLAGS -Wformat"],,[[$CXXFLAG_WERROR]]) + AX_CHECK_COMPILE_FLAG([-Wvla],[CXXFLAGS="$CXXFLAGS -Wvla"],,[[$CXXFLAG_WERROR]]) AX_CHECK_COMPILE_FLAG([-Wformat-security],[CXXFLAGS="$CXXFLAGS -Wformat-security"],,[[$CXXFLAG_WERROR]]) ## Some compilers (gcc) ignore unknown -Wno-* options, but warn about all |