开发者

How to resolve: warning: not protecting local variables: variable length buffer

when building my project, the following warning is generated:

warning: not protecting lo开发者_运维百科cal variables: variable length buffer

i have enabled the stack protector and already specified the size however this is still occurring.

-fstack-protector-all -Wall -Wstack-protector --param ssp-buffer-size=2

can you suggest a way to resolve the warning without actually turning off the warning flags? thanks

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜