Suppress warnings in skip frame test.
@@ -1937,9 +1937,7 @@ int queue_network_input_test()
new_data_available = 0;
if ((ret = picoquic_queue_network_input(tree, 0, 0, data, 4, &new_data_available)) != 0) {
DBG_PRINTF("picoquic_queue_network_input(0, 0, 4) failed (%d)", ret);
- }
-
- if (new_data_available == 0) {
+ } else if (new_data_available == 0) {
DBG_PRINTF("new_data_available doesn't signal new data (%d)", new_data_available);
ret = 1;
}
@@ -1949,9 +1947,7 @@ int queue_network_input_test()
new_data_available = 0;
if ((ret = picoquic_queue_network_input(tree, 0, 6, data + 6, 4, &new_data_available)) != 0) {
DBG_PRINTF("picoquic_queue_network_input(0, 6, 4) failed (%d)", ret);
- }
-
- if (new_data_available == 0) {
+ } else if (new_data_available == 0) {
DBG_PRINTF("new_data_available doesn't signal new data (%d)", new_data_available);
ret = 1;
}
@@ -1962,9 +1958,7 @@ int queue_network_input_test()
new_data_available = 0;
if ((ret = picoquic_queue_network_input(tree, 0, 2, data + 2, 6, &new_data_available)) != 0) {
DBG_PRINTF("picoquic_queue_network_input(0, 2, 6) failed (%d)", ret);
- }
-
- if (new_data_available == 0) {
+ } else if (new_data_available == 0) {
DBG_PRINTF("new_data_available signals new data (%d)", new_data_available);
ret = 1;
}
