Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Shut up some boring old cpu warnings.

  • Loading branch information...
commit 52de7170b25fa50a179e009f87945a038530156a 1 parent 8ebf4f6
Con Kolivas authored
4  driver-cpu.c
@@ -67,7 +67,7 @@ static inline void drop_policy(void)
67 67
 {
68 68
 }
69 69
 
70  
-static inline void affine_to_cpu(int id, int cpu)
  70
+static inline void affine_to_cpu(int __maybe_unused id, int __maybe_unused cpu)
71 71
 {
72 72
 }
73 73
 #endif
@@ -778,7 +778,7 @@ static bool cpu_thread_prepare(struct thr_info *thr)
778 778
 	return true;
779 779
 }
780 780
 
781  
-static uint64_t cpu_can_limit_work(struct thr_info *thr)
  781
+static uint64_t cpu_can_limit_work(struct thr_info __maybe_unused *thr)
782 782
 {
783 783
 	return 0xffff;
784 784
 }
4  sha256_4way.c
@@ -47,11 +47,11 @@ static inline __m128i Maj(const __m128i b, const __m128i c, const __m128i d) {
47 47
     return _mm_xor_si128(_mm_xor_si128(_mm_and_si128(b,c),_mm_and_si128(b,d)),_mm_and_si128(c,d));
48 48
 }
49 49
 
50  
-static __attribute__((always_inline)) __m128i  ROTR(__m128i x, const int n) {
  50
+static inline __m128i  ROTR(__m128i x, const int n) {
51 51
     return _mm_or_si128(_mm_srli_epi32(x, n),_mm_slli_epi32(x, 32 - n));
52 52
 }
53 53
 
54  
-static  __attribute__((always_inline))  __m128i SHR(__m128i x, const int n) {
  54
+static inline __m128i SHR(__m128i x, const int n) {
55 55
     return _mm_srli_epi32(x, n);
56 56
 }
57 57
 
4  sha256_via.c
@@ -19,9 +19,9 @@ static void via_sha256(void *hash, void *buf, unsigned len)
19 19
 		     :"memory");
20 20
 }
21 21
 
22  
-bool scanhash_via(struct thr_info*thr, const unsigned char *pmidstate,
  22
+bool scanhash_via(struct thr_info*thr, const unsigned char __maybe_unused *pmidstate,
23 23
 	unsigned char *data_inout,
24  
-	unsigned char *phash1, unsigned char *phash,
  24
+	unsigned char __maybe_unused *phash1, unsigned char __maybe_unused *phash,
25 25
 	const unsigned char *target,
26 26
 		  uint32_t max_nonce, uint32_t *last_nonce,
27 27
 		  uint32_t n)

0 notes on commit 52de717

Please sign in to comment.
Something went wrong with that request. Please try again.