Fix compilation

Fix compilation error:
/oai-ran/openair1/SIMULATION/NR_PHY/dlsim.c:932:42: error: variable 'h_channel_coeffs' set but not used [-Werror,-Wunused-but-set-variable]
  932 |                                   float *h_channel_coeffs = NULL;
      |                                          ^
This commit is contained in:
Jaroslava Fiedlerova
2026-02-26 11:32:14 +00:00
parent c32d881be8
commit a6bf72e895
+3 -1
View File
@@ -877,11 +877,13 @@ int main(int argc, char **argv)
0,
0);
float *h_channel_coeffs = NULL;
#ifdef ENABLE_CUDA
float *h_channel_coeffs = NULL;
if (use_cuda) {
int num_links = n_tx * n_rx;
h_channel_coeffs = (float *)malloc(num_links * gNB2UE->channel_length * sizeof(float) * 2);
}
#endif
if (gNB2UE==NULL) {
printf("Problem generating channel model. Exiting.\n");
exit(-1);