open-nFAPI icon indicating copy to clipboard operation
open-nFAPI copied to clipboard

compilation problems when including nfapi/public_inc/nfapi_interface.h

Open Matthew-Jemielity opened this issue 6 years ago • 0 comments

Hi,

The header contains:

  1. at least one UB (as defined by C99 standard), line 1795: typedef struct { } nfapi_ul_config_aperiodic_cqi_pmi_ri_report_re13_t;

  2. several warnings about unnamed internal member structs, for example line 1779: typedef struct { nfapi_tl_t tl; uint8_t report_type; uint8_t delta_offset_cqi; uint8_t delta_offset_ri; union { nfapi_ul_config_periodic_cqi_pmi_ri_report_t periodic_cqi_pmi_ri_report; nfapi_ul_config_aperiodic_cqi_pmi_ri_report_t aperiodic_cqi_pmi_ri_report; }; } nfapi_ul_config_cqi_ri_information_rel9_t; but this can be ignored by not using -pedantic flag.

Could you fix at least the UB, for example either by not including this type definition at all or by typedefing it to void pointer or int?

Matthew-Jemielity avatar Sep 27 '19 14:09 Matthew-Jemielity