summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-09-11 02:01:31 +0300
committerAndrei Karas <akaras@inbox.ru>2018-09-19 22:24:50 +0300
commitd7c3cd215f25380cd5db1e93ac549bbb441c60c5 (patch)
treefbb82466765dfb7227a3ff48e1d194d3b62f0841 /configure.ac
parent1243ccae245b12134f841703957221c3157dda9a (diff)
downloadhercules-d7c3cd215f25380cd5db1e93ac549bbb441c60c5.tar.gz
hercules-d7c3cd215f25380cd5db1e93ac549bbb441c60c5.tar.bz2
hercules-d7c3cd215f25380cd5db1e93ac549bbb441c60c5.tar.xz
hercules-d7c3cd215f25380cd5db1e93ac549bbb441c60c5.zip
Add -Wvla flag into configure.
This flag prevent usage of variable length arrays.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4d5f4bcfd..2aad9d7e7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1085,6 +1085,7 @@ AC_CHECK_COMPILER_WFLAG(redundant-decls)
AC_CHECK_COMPILER_WFLAG(cast-qual)
AC_CHECK_COMPILER_WFLAG(misleading-indentation)
AC_CHECK_COMPILER_WFLAG(null-dereference)
+AC_CHECK_COMPILER_WFLAG(vla)
AC_CHECK_COMPILER_WNOFLAG(format-nonliteral)
AC_CHECK_COMPILER_WNOFLAG(switch)
AC_CHECK_COMPILER_WNOFLAG(missing-field-initializers)