Browse Source

Use cppcheck

miguelfreitas
Chuck LeDuc Diaz 10 years ago
parent
commit
557edad77d
  1. 13
      .gitignore
  2. 3
      Makefile.am
  3. 2
      src/cppcheck-suppressions.txt

13
.gitignore vendored

@ -2,6 +2,8 @@ src/*.exe @@ -2,6 +2,8 @@ src/*.exe
src/bitcoin
src/bitcoind
src/test_bitcoin
src/.deps/
src/.dirstamp
.*.swp
*.*~*
*.bak
@ -56,3 +58,14 @@ qrc_*.cpp @@ -56,3 +58,14 @@ qrc_*.cpp
build
!src/leveldb-*/Makefile
build-aux/
libtool
libtorrent/src/.deps/
libtorrent/src/.dirstamp
libtorrent/src/kademlia/.deps/
libtorrent/src/kademlia/.dirstamp
# Targets
twister-control
twisterd

3
Makefile.am

@ -201,6 +201,9 @@ clean-local: @@ -201,6 +201,9 @@ clean-local:
-$(MAKE) -C src/leveldb clean
rm -f src/leveldb/*/*.gcno src/leveldb/helpers/memenv/*.gcno
cppcheck:
cppcheck ./src --force --quiet ./src/cppcheck-supressions.txt
pixmapsdir = $(datadir)/pixmaps
pixmaps_DATA = share/pixmaps/*

2
src/cppcheck-suppressions.txt

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
uninitstring:src/scrypt.cpp:83
arrayIndexOutOfBounds:src/test/DoS_tests.cpp:300
Loading…
Cancel
Save