From 599f2f7bd9d08c062831b2aa6bb0035ba67175dc Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 1 Aug 2020 07:09:52 +0100 Subject: [PATCH] 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 --- m4/guestfs-c.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/guestfs-c.m4 b/m4/guestfs-c.m4 index b853ff1be..c91d4aaee 100644 --- a/m4/guestfs-c.m4 +++ b/m4/guestfs-c.m4 @@ -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.