Fix some warnings when compiling with "-W -Wall" flags (#1103)

This commit is contained in:
Ivan Nardi
2021-01-04 15:49:39 +01:00
committed by GitHub
parent 23b84cd3ee
commit 3aa16b63e8
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -1111,7 +1111,6 @@ static char* is_unsafe_cipher(ndpi_cipher_weakness c) {
void print_bin(FILE *fout, const char *label, struct ndpi_bin *b) {
u_int8_t i;
FILE *out = results_file ? results_file : stdout;
const char *sep = label ? "," : ";";
ndpi_normalize_bin(b);
@@ -3384,9 +3383,9 @@ void test_lib() {
/* *********************************************** */
#if 0
static void binUnitTest() {
struct ndpi_bin *bins, b0, b1;
u_int8_t versbose = 0;
u_int8_t num_bins = 32;
u_int8_t num_points = 24;
u_int32_t i, j;
@@ -3441,6 +3440,7 @@ static void binUnitTest() {
// exit(0);
}
#endif
/* *********************************************** */
+2
View File
@@ -39,8 +39,10 @@ u_int32_t MurmurHash3_x86_32(const void *key, u_int32_t len, u_int32_t seed) {
{
case 3:
k1 ^= (u_int32_t)tail[2] << 16;
/* fall-through */
case 2:
k1 ^= (u_int32_t)tail[1] << 8;
/* fall-through */
case 1:
k1 ^= tail[0];
k1 *= c1;