diff options
author | roman <roman@llll.de> | 2015-08-23 17:59:24 +0200 |
---|---|---|
committer | roman <roman@llll.de> | 2015-08-23 17:59:24 +0200 |
commit | 59cc92b388a5cf7d25db3eb62d01f18f34c66e9e (patch) | |
tree | 43c26493193f396354d3d34e8b8b2a34a394f4c8 /src/crypto | |
parent | Merge pull request #379 (diff) | |
download | monero-59cc92b388a5cf7d25db3eb62d01f18f34c66e9e.tar.xz |
removed some gcc warnings. mainly unused variables.
Diffstat (limited to 'src/crypto')
-rw-r--r-- | src/crypto/groestl.c | 3 | ||||
-rw-r--r-- | src/crypto/slow-hash.c | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/crypto/groestl.c b/src/crypto/groestl.c index e1c89cc3b..84bfb2947 100644 --- a/src/crypto/groestl.c +++ b/src/crypto/groestl.c @@ -204,10 +204,9 @@ static void OutputTransformation(hashState *ctx) { /* initialise context */ static void Init(hashState* ctx) { - int i = 0; /* allocate memory for state and data buffer */ - for(;i<(SIZE512/sizeof(uint32_t));i++) + for(unsigned i = 0; i < (SIZE512/sizeof(uint32_t)); i++) { ctx->chaining[i] = 0; } diff --git a/src/crypto/slow-hash.c b/src/crypto/slow-hash.c index 60699d4e6..679edf7f9 100644 --- a/src/crypto/slow-hash.c +++ b/src/crypto/slow-hash.c @@ -413,7 +413,6 @@ BOOL SetLockPagesPrivilege(HANDLE hProcess, BOOL bEnable) void slow_hash_allocate_state(void) { - int state = 0; if(hp_state != NULL) return; |