Browse Source

Shut up some boring old cpu warnings.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
52de7170b2
  1. 4
      driver-cpu.c
  2. 4
      sha256_4way.c
  3. 4
      sha256_via.c

4
driver-cpu.c

@ -67,7 +67,7 @@ static inline void drop_policy(void)
{ {
} }
static inline void affine_to_cpu(int id, int cpu) static inline void affine_to_cpu(int __maybe_unused id, int __maybe_unused cpu)
{ {
} }
#endif #endif
@ -778,7 +778,7 @@ static bool cpu_thread_prepare(struct thr_info *thr)
return true; return true;
} }
static uint64_t cpu_can_limit_work(struct thr_info *thr) static uint64_t cpu_can_limit_work(struct thr_info __maybe_unused *thr)
{ {
return 0xffff; return 0xffff;
} }

4
sha256_4way.c

@ -47,11 +47,11 @@ static inline __m128i Maj(const __m128i b, const __m128i c, const __m128i d) {
return _mm_xor_si128(_mm_xor_si128(_mm_and_si128(b,c),_mm_and_si128(b,d)),_mm_and_si128(c,d)); return _mm_xor_si128(_mm_xor_si128(_mm_and_si128(b,c),_mm_and_si128(b,d)),_mm_and_si128(c,d));
} }
static __attribute__((always_inline)) __m128i ROTR(__m128i x, const int n) { static inline __m128i ROTR(__m128i x, const int n) {
return _mm_or_si128(_mm_srli_epi32(x, n),_mm_slli_epi32(x, 32 - n)); return _mm_or_si128(_mm_srli_epi32(x, n),_mm_slli_epi32(x, 32 - n));
} }
static __attribute__((always_inline)) __m128i SHR(__m128i x, const int n) { static inline __m128i SHR(__m128i x, const int n) {
return _mm_srli_epi32(x, n); return _mm_srli_epi32(x, n);
} }

4
sha256_via.c

@ -19,9 +19,9 @@ static void via_sha256(void *hash, void *buf, unsigned len)
:"memory"); :"memory");
} }
bool scanhash_via(struct thr_info*thr, const unsigned char *pmidstate, bool scanhash_via(struct thr_info*thr, const unsigned char __maybe_unused *pmidstate,
unsigned char *data_inout, unsigned char *data_inout,
unsigned char *phash1, unsigned char *phash, unsigned char __maybe_unused *phash1, unsigned char __maybe_unused *phash,
const unsigned char *target, const unsigned char *target,
uint32_t max_nonce, uint32_t *last_nonce, uint32_t max_nonce, uint32_t *last_nonce,
uint32_t n) uint32_t n)

Loading…
Cancel
Save