Don't use __attribute__((unused))
[m6w6/libmemcached] / libhashkit / crc32.c
index 6db04783acd5ed3e139d11b0e59737730f0416b7..b4ad8ec3907bd4446f11194c8b845656ac924d4b 100644 (file)
@@ -73,10 +73,11 @@ static const uint32_t crc32tab[256] = {
   0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d,
 };
 
-uint32_t hashkit_crc32(const char *key, size_t key_length, void *context __attribute__((unused)))
+uint32_t hashkit_crc32(const char *key, size_t key_length, void *context)
 {
   uint64_t x;
   uint32_t crc= UINT32_MAX;
+  (void)context;
 
   for (x= 0; x < key_length; x++)
      crc= (crc >> 8) ^ crc32tab[(crc ^ (uint64_t)key[x]) & 0xff];