Browse Source

db_text: fix clang compiler warning

Ovidiu Sas 11 năm trước cách đây
mục cha
commit
f4c7ac4c0e
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      modules/db_text/dbt_api.c

+ 4 - 0
modules/db_text/dbt_api.c

@@ -176,6 +176,10 @@ static int dbt_convert_row(db1_con_t* _h, db1_res_t* _res, db_row_t* _r)
 					DBT_CON_ROW(_h)->fields[i].val.bitmap_val;
 				VAL_TYPE(&(ROW_VALUES(_r)[i])) = DB1_INT;
 			break;
+
+			default:
+				LM_ERR("val type [%d] not supported", RES_TYPES(_res)[i]);
+				return -1;
 		}
 	}
 	return 0;