From 4a13d92b88c0b58f6e209114ec3acbbabe0bb352 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Fri, 5 Dec 2014 11:25:21 +1100 Subject: Reduce -Wstack-usage down to 1024 bytes. We now warn on any function or stack frame that's going to use more than 1024 bytes of stack. The current biggest user with 912 bytes is p7ioc_init_ci_routing() Signed-off-by: Stewart Smith --- Makefile.main | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile.main') diff --git a/Makefile.main b/Makefile.main index 75ff7d1..e6ff0a6 100644 --- a/Makefile.main +++ b/Makefile.main @@ -23,8 +23,8 @@ CWARNS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -Winit-self \ -Wsuggest-attribute=const \ -Wsuggest-attribute=noreturn \ - -Wframe-larger-than=2048 \ - -Wstack-usage=4096 + -Wframe-larger-than=1024 \ + -Wstack-usage=1024 # Host tools and options HOSTCC=gcc -- cgit v1.1