[Swan-dev] unreachable code

Paul Wouters paul at nohats.ca
Tue Mar 11 18:47:43 EET 2014


On Mon, 10 Mar 2014, Lennart Sorensen wrote:

>> Coverity knows :)
>
> Maybe scanbuild (from clang) would do it.  It seems to be getting
> quite good.

I first compiled using CC=clang, which worked and gave a few errors I
fixed.

Then I used scan-build for a report, but I haven't looked at it yet in
detail. It's up at ftp://ftp.nohats.ca/libreswan-scanbuild/

to create it, I used:

sudo yum install clang-analyzer
scan-build make programs

Thanks for the tip,

Paul


More information about the Swan-dev mailing list