Browse Source

db_flatstore: fix clang compiler warning

Ovidiu Sas 11 years ago
parent
commit
abe9d1642a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      modules/db_flatstore/km_flatstore.c

+ 4 - 0
modules/db_flatstore/km_flatstore.c

@@ -212,6 +212,10 @@ int flat_db_insert(const db1_con_t* h, const db_key_t* k, const db_val_t* v,
 		case DB1_BITMAP:
 			fprintf(f, "%u", VAL_BITMAP(v + i));
 			break;
+
+		default:
+			LM_ERR("val type [%d] not supported", VAL_TYPE(v + i));
+			return -1;
 		}
 
 		if (i < (n - 1)) {