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 | 776b4fc91a821be152f0f23e6873aabb78a72029 (diff) | |
| download | monzero-core-59cc92b388a5cf7d25db3eb62d01f18f34c66e9e.tar.gz monzero-core-59cc92b388a5cf7d25db3eb62d01f18f34c66e9e.tar.xz monzero-core-59cc92b388a5cf7d25db3eb62d01f18f34c66e9e.zip | |
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; |
