Re: [PATCH] Fix some sparse warnings
- From
Stefan Beller <stefanbeller@googlemail.com>
- Date
- Jul 17, 2013, 22:16 UTC
- Message-ID
- <51E717C4.6010606@googlemail.com>
- In-Reply-To
- <51E715D8.9040307@googlemail.com>
On 07/18/2013 12:08 AM, Stefan Beller wrote:
> > So I started using the clang code analyzer on git. One of the > first warnings actually is this: >
So in case somebody else would also like to play around with the clang static code analyzer:
# get clang: cd <good location> git clone http://llvm.org/git/llvm.git cd llvm/tools git clone http://llvm.org/git/clang cd <good location> mkdir build && cd build cmake .. # if desired make install
# in the Makefile of git change CC = <good location>/llvm/tools/clang/tools/scan-build/ccc-analyzer # then obviously: make clean make