From f621326c24791be14aa61221f7e35530378b84d8 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Wed, 9 May 2012 03:48:14 +0200 Subject: 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 --- src/addrman.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/addrman.h') diff --git a/src/addrman.h b/src/addrman.h index 3768614cfe..43b6d35ed8 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); -- cgit v1.2.3