mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
fix(build): Fix unused argument warnings in unit tests
Assisted-by: Gemini:Flash-3.5 Signed-off-by: Bartosz Podrygajlo <bartosz.podrygajlo@openairinterface.org>
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
#include "nfapi_nr_interface.h"
|
||||
#include "nfapi_nr_interface_scf.h"
|
||||
|
||||
#include "common/platform_types.h"
|
||||
|
||||
#define FILL_TLV(TlV, TaG, VaL) \
|
||||
do { \
|
||||
TlV.tl.tag = TaG; \
|
||||
@@ -64,8 +66,6 @@ uint32_t rand32_range(uint32_t lower, uint32_t upper)
|
||||
return (rand() % (upper - lower + 1)) + lower;
|
||||
}
|
||||
|
||||
int main(int n, char *v[]);
|
||||
|
||||
static inline void fapi_test_init_seeded(time_t seed)
|
||||
{
|
||||
srand(seed);
|
||||
|
||||
@@ -495,7 +495,7 @@ static void test_config_req_fdd(void)
|
||||
free_config_request(&req);
|
||||
}
|
||||
|
||||
int main(int n, char *v[])
|
||||
int main()
|
||||
{
|
||||
fapi_test_init();
|
||||
test_config_req_rand();
|
||||
|
||||
@@ -97,7 +97,7 @@ void test_copy(const nfapi_nr_config_response_scf_t *msg)
|
||||
free_config_response(©);
|
||||
}
|
||||
|
||||
int main(int n, char *v[])
|
||||
int main()
|
||||
{
|
||||
fapi_test_init();
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ void test_copy(const nfapi_nr_error_indication_scf_t *msg)
|
||||
free_error_indication(©);
|
||||
}
|
||||
|
||||
int main(int n, char *v[])
|
||||
int main()
|
||||
{
|
||||
fapi_test_init();
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ void test_copy(const nfapi_nr_param_request_scf_t *msg)
|
||||
free_param_request(©);
|
||||
}
|
||||
|
||||
int main(int n, char *v[])
|
||||
int main()
|
||||
{
|
||||
fapi_test_init();
|
||||
|
||||
|
||||
@@ -238,7 +238,7 @@ void test_copy(const nfapi_nr_param_response_scf_t *msg)
|
||||
free_param_response(©);
|
||||
}
|
||||
|
||||
int main(int n, char *v[])
|
||||
int main()
|
||||
{
|
||||
fapi_test_init();
|
||||
nfapi_nr_param_response_scf_t req = {.header.message_id = NFAPI_NR_PHY_MSG_TYPE_PARAM_RESPONSE};
|
||||
|
||||
@@ -46,7 +46,7 @@ void test_copy(const nfapi_nr_start_request_scf_t *msg)
|
||||
free_start_request(©);
|
||||
}
|
||||
|
||||
int main(int n, char *v[])
|
||||
int main()
|
||||
{
|
||||
fapi_test_init();
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ void test_copy(const nfapi_nr_start_response_scf_t *msg)
|
||||
free_start_response(©);
|
||||
}
|
||||
|
||||
int main(int n, char *v[])
|
||||
int main()
|
||||
{
|
||||
fapi_test_init();
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ void test_copy(const nfapi_nr_stop_indication_scf_t *msg)
|
||||
free_stop_indication(©);
|
||||
}
|
||||
|
||||
int main(int n, char *v[])
|
||||
int main()
|
||||
{
|
||||
fapi_test_init();
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ void test_copy(const nfapi_nr_stop_request_scf_t *msg)
|
||||
free_stop_request(©);
|
||||
}
|
||||
|
||||
int main(int n, char *v[])
|
||||
int main()
|
||||
{
|
||||
fapi_test_init();
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ static void test_copy(const nfapi_nr_crc_indication_t *msg)
|
||||
free_crc_indication(©);
|
||||
}
|
||||
|
||||
int main(int n, char *v[])
|
||||
int main()
|
||||
{
|
||||
fapi_test_init();
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ void test_pack_payload(uint8_t payloadSizeBits, uint8_t payload[])
|
||||
// All tests successful!
|
||||
}
|
||||
|
||||
int main(int n, char *v[])
|
||||
int main()
|
||||
{
|
||||
fapi_test_init();
|
||||
uint8_t upper = 8 * DCI_PAYLOAD_BYTE_LEN;
|
||||
|
||||
@@ -246,7 +246,7 @@ static void test_copy(const nfapi_nr_dl_tti_request_t *msg)
|
||||
free_dl_tti_request(©);
|
||||
}
|
||||
|
||||
int main(int n, char *v[])
|
||||
int main()
|
||||
{
|
||||
fapi_test_init();
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ static void test_copy(const nfapi_nr_rach_indication_t *msg)
|
||||
free_rach_indication(©);
|
||||
}
|
||||
|
||||
int main(int n, char *v[])
|
||||
int main()
|
||||
{
|
||||
fapi_test_init();
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ static void test_copy(const nfapi_nr_rx_data_indication_t *msg)
|
||||
free_rx_data_indication(©);
|
||||
}
|
||||
|
||||
int main(int n, char *v[])
|
||||
int main()
|
||||
{
|
||||
fapi_test_init();
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ static void test_copy(const nfapi_nr_slot_indication_scf_t *msg)
|
||||
free_slot_indication(©);
|
||||
}
|
||||
|
||||
int main(int n, char *v[])
|
||||
int main()
|
||||
{
|
||||
fapi_test_init();
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ static void test_copy(const nfapi_nr_srs_indication_t *msg)
|
||||
free_srs_indication(©);
|
||||
}
|
||||
|
||||
int main(int n, char *v[])
|
||||
int main()
|
||||
{
|
||||
fapi_test_init();
|
||||
|
||||
|
||||
@@ -138,7 +138,7 @@ static void test_copy(const nfapi_nr_tx_data_request_t *msg)
|
||||
free_tx_data_request(©);
|
||||
}
|
||||
|
||||
int main(int n, char *v[])
|
||||
int main()
|
||||
{
|
||||
fapi_test_init();
|
||||
|
||||
|
||||
@@ -205,7 +205,7 @@ static void test_copy(const nfapi_nr_uci_indication_t *msg)
|
||||
free_uci_indication(©);
|
||||
}
|
||||
|
||||
int main(int n, char *v[])
|
||||
int main()
|
||||
{
|
||||
fapi_test_init();
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ static void test_copy(const nfapi_nr_ul_dci_request_t *msg)
|
||||
free_ul_dci_request(©);
|
||||
}
|
||||
|
||||
int main(int n, char *v[])
|
||||
int main()
|
||||
{
|
||||
fapi_test_init();
|
||||
|
||||
|
||||
@@ -427,7 +427,7 @@ static void test_copy(const nfapi_nr_ul_tti_request_t *msg)
|
||||
free_ul_tti_request(©);
|
||||
}
|
||||
|
||||
int main(int n, char *v[])
|
||||
int main()
|
||||
{
|
||||
fapi_test_init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user