m4: Increase warning limit for frame-larger-than.

Generated code in virt-builder causes the error below.  Since we
cannot control what is generated by bison, increase the limit.

  CCLD     virt-index-validate
index-parse.c: In function 'yyparse':
index-parse.c:1857:1: error: the frame size of 5152 bytes is larger than 5000 bytes [-Werror=frame-larger-than=]
 1857 | }
      | ^
lto1: all warnings being treated as errors
lto-wrapper: fatal error: gcc returned 1 exit status
This commit is contained in:
Richard W.M. Jones
2020-08-01 07:09:52 +01:00
parent 5b29fba5b2
commit 599f2f7bd9

View File

@@ -92,7 +92,7 @@ dnl Now some warnings we want to enable and/or customize ...
dnl Warn about large stack frames. This does not include alloca and
dnl variable length arrays. Coverity warns about 10000 byte frames.
gl_WARN_ADD([-Wframe-larger-than=5000])
gl_WARN_ADD([-Wframe-larger-than=6000])
dnl Warn about large stack frames, including estimates for alloca
dnl and variable length arrays.