On Tuesday, December 17, 2013 11:36:26 AM Dan Williams wrote:
> > In the last few days, I have been running cppcheck on quite a few programs
> > including systemd, transmission, libvirt,  ndjbdns etc and cppcheck has
> > found real and potential bugs (null pointer dereferences, uninitialized
> > variables, memory & resource leaks etc) in each of them.  I have reported
> > the ones I found and several developers have already fixed the issues.   A
> > couple of examples
> 
> How are you running it to get it to print the warnings?  I've tried
> --enable=warning, but all I get are includes errors (like <errno.h>)
> that aren't useful and are wrong AFAICT.

I wrote a system a couple years ago to make cppcheck useful:

http://people.redhat.com/sgrubb/swa/cwe/index.html

You need to collect defines, includes, and the files compiled. Then feed then 
to 
it. The page I listed above has helper scripts.

-Steve
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Reply via email to