← Back to team overview

maria-developers team mailing list archive

gcc -Wframe-larger-than



Just noticed that gcc has a warning option -Wframe-larger-than=LEN
that makes gcc to warn about functions with stack frames larger
than LEN.

Considering a recent issue when we had a 130K structure on the stack
(which did overflow the stack in some cases), it may be a good idea to
enable this warning with a reasonably conservative threshold, say, 16K
or 32K.


Follow ups