[英]Treat (some) valgrind warnings as errors?
Is it possible to change some valgrind warnings into errors? 是否有可能将某些valgrind警告更改为错误?
In particular, I want to turn the probably lost
warning into an error. 特别是,我想将
probably lost
警告变成错误。
In the valgrind manual I found only information about how to suppress warnings. 在valgrind手册中,我只找到了有关如何抑制警告的信息。
Is there a way to do what I want? 有办法做我想要的吗?
Since valgrind release 3.9, you can use the below command line options to better control what leak to reports, and what leaks to consider as errors. 自valgrind发布3.9以来,您可以使用以下命令行选项来更好地控制报告的泄漏,以及将哪些泄漏视为错误。
--show-leak-kinds=kind1,kind2,.. which leak kinds to show?
[definite,possible]
--errors-for-leak-kinds=kind1,kind2,.. which leak kinds are errors?
[definite,possible]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.