mirror of
https://github.com/monero-project/monero.git
synced 2025-08-16 17:50:18 -04:00
GCC: fix some unused warnings
hash_extra: don't test for success in `jh_hash` and `skein_hash` since its guaranteed device_ledger: move anonymous global variable apdu_verbose into .cpp file Add comments to `refreshed` method variable in wallet2
This commit is contained in:
parent
9750e1fa10
commit
4d7f6f5cd5
5 changed files with 16 additions and 8 deletions
|
@ -34,7 +34,9 @@
|
|||
#include "hash-ops.h"
|
||||
#include "skein.h"
|
||||
|
||||
#define SKEIN_HASH_BITLEN HASH_SIZE * 8
|
||||
|
||||
void hash_extra_skein(const void *data, size_t length, char *hash) {
|
||||
int r = skein_hash(8 * HASH_SIZE, data, 8 * length, (uint8_t*)hash);
|
||||
assert(SKEIN_SUCCESS == r);
|
||||
// No need to check for failure b/c skein_hash only fails for invalid hash size
|
||||
skein_hash(SKEIN_HASH_BITLEN, data, 8 * length, (uint8_t*)hash);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue