Skip to content

compilation problems when including nfapi/public_inc/nfapi_interface.h #26

Open
@Matthew-Jemielity

Description

@Matthew-Jemielity

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions