Update protocol_binary.h to the latest one from the memcached distribution
[m6w6/libmemcached] / libmemcached / jenkins_hash.c
index 262ff937bbcf300e59fbf346a9c1329f7c32df0c..e84cf3edefc0af9c829f792e933e4dfe60611cd4 100644 (file)
@@ -104,6 +104,7 @@ uint32_t jenkins_hash(const void *key, size_t length, uint32_t initval)
     case 2 : a+=k[0]&0xffff; break;
     case 1 : a+=k[0]&0xff; break;
     case 0 : return c;              /* zero length strings require no mixing */
+    default: return c;
     }
 
   } 
@@ -153,6 +154,7 @@ uint32_t jenkins_hash(const void *key, size_t length, uint32_t initval)
     case 1 : a+=k8[0];
              break;
     case 0 : return c;                     /* zero length requires no mixing */
+    default: return c;
     }
 
   } 
@@ -198,6 +200,7 @@ uint32_t jenkins_hash(const void *key, size_t length, uint32_t initval)
     case 1 : a+=k[0];
              break;
     case 0 : return c;
+    default : return c;
     }
 #ifdef BYTEORDER_LITTLE_ENDIAN
   }