mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 12:34:27 +00:00
Fix harmless unused warnings in scrypt.h.
This commit is contained in:
parent
85b9746277
commit
dc8ef0c725
7
scrypt.h
7
scrypt.h
@ -2,9 +2,12 @@
|
||||
#define SCRYPT_H
|
||||
|
||||
#ifdef USE_SCRYPT
|
||||
extern bool scrypt_test(unsigned char *pdata, const unsigned char *ptarget, uint32_t nonce);
|
||||
extern bool scrypt_test(unsigned char *pdata, const unsigned char *ptarget,
|
||||
uint32_t nonce);
|
||||
#else /* USE_SCRYPT */
|
||||
static inline bool scrypt_test(unsigned char *pdata, const unsigned char *ptarget, uint32_t nonce)
|
||||
static inline bool scrypt_test(__maybe_unused unsigned char *pdata,
|
||||
__maybe_unused const unsigned char *ptarget,
|
||||
__maybe_unused uint32_t nonce)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user