diff options
| author | Pieter Wuille <[email protected]> | 2012-05-09 03:48:14 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-05-09 03:48:30 +0200 |
| commit | f621326c24791be14aa61221f7e35530378b84d8 (patch) | |
| tree | 447995abd684e0fa74804aa5df76bd14417250c3 /src/addrman.h | |
| parent | Revert part of 1302257e: don't update CXXFLAGS, only xCXXFLAGS (diff) | |
| download | discoin-f621326c24791be14aa61221f7e35530378b84d8.tar.xz discoin-f621326c24791be14aa61221f7e35530378b84d8.zip | |
Clean up warnings
* Use -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameters
* Remove xCXXFLAGS usage in makefile.unix
* Fix several recent and older sign-compare warnings
Diffstat (limited to 'src/addrman.h')
| -rw-r--r-- | src/addrman.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/addrman.h b/src/addrman.h index 3768614cf..43b6d35ed 100644 --- a/src/addrman.h +++ b/src/addrman.h @@ -204,7 +204,7 @@ protected: CAddrInfo* Create(const CAddress &addr, const CNetAddr &addrSource, int *pnId = NULL); // Swap two elements in vRandom. - void SwapRandom(int nRandomPos1, int nRandomPos2); + void SwapRandom(unsigned int nRandomPos1, unsigned int nRandomPos2); // Return position in given bucket to replace. int SelectTried(int nKBucket); |