<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 21, 2016 at 8:33 AM, Artem Dergachev <span dir="ltr"><<a href="mailto:noqnoqneo@gmail.com" target="_blank">noqnoqneo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">First of all, you shouldn't be calling the "c++-analyzer" executable directly. It shouldn't ideally be in your PATH. This script is intended to be run by a tool called "scan-build", which essentially does the "CXX=c++-analyzer" thing you're doing, just passing a lot of options to this script through its own environment variables.<br></blockquote></div><br></div><div class="gmail_extra">Ahh, OK sorry.  If I re-try with a clean build dir:<br><br></div><div class="gmail_extra">scan-build cmake -DCMAKE_BUILD_TYPE=Release ..<br></div><div class="gmail_extra">scan-build make<br><br></div><div class="gmail_extra">I still see the aforementioned "Potential memory leak" on the console, but at the end of the run scan-build says there are no reports, and removes the output html directory.<br></div></div>