mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
toolchain: detect use of large stack variables
partition/fs_gpt.c:384:5: warning: stack usage might be 288 bytes [-Wstack-usage=] 384 | int parse_gpt_partition(FAR struct partition_state_s *state, Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
d3bca3c2cf
commit
88f3bc77f1
@@ -2073,6 +2073,13 @@ config STACK_USAGE
|
||||
on a per-function basis. Please use https://github.com/HBehrens/puncover
|
||||
or tools/showstack.sh to generate the more useful report.
|
||||
|
||||
config STACK_USAGE_WARNING
|
||||
int "Detect use of large stack variables"
|
||||
default 0
|
||||
help
|
||||
Set the stack warning threshold, if the stack usage exceeds the
|
||||
threshold, a warning will be generated
|
||||
|
||||
config ARCH_HAVE_HEAPCHECK
|
||||
bool
|
||||
default n
|
||||
|
||||
Reference in New Issue
Block a user