Commit dc8ef0c725c482d2f3ddf0d0a5ccd5cf508ad0b2

Con Kolivas 2012-08-15T09:06:23

Fix harmless unused warnings in scrypt.h.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/scrypt.h b/scrypt.h
index 45dd46b..4ea3abd 100644
--- a/scrypt.h
+++ b/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;
 }