"awaiting announcement" in QtCreator by current code

I work in a C project with QtCreator (yes, this is primarily for C ++, but so far it has worked fine for C).

Now I get a red link to a valid code that compiles fine:

enter image description here

Basically this is this unchanged example libopencm3 example project for a virtual COM port.

You may see some problems in the code, maybe not fatal, but what can make the editor consider this a mistake?

I tried replacing with an struct usb_device_descriptorequivalent typedef, but that didn't help.

An error in the second line says "expected", received. ". Closing is }annotated as" extra ",

Here's how the structure is declared:

/* USB Standard Device Descriptor - Table 9-8 */
struct usb_device_descriptor {
    uint8_t bLength;
    uint8_t bDescriptorType;
    uint16_t bcdUSB;
    uint8_t bDeviceClass;
    uint8_t bDeviceSubClass;
    uint8_t bDeviceProtocol;
    uint8_t bMaxPacketSize0;
    uint16_t idVendor;
    uint16_t idProduct;
    uint16_t bcdDevice;
    uint8_t iManufacturer;
    uint8_t iProduct;
    uint8_t iSerialNumber;
    uint8_t bNumConfigurations;
} __attribute__((packed));
+4
1

:

"C" Clang :

enter image description here

( .s. , , )

+1

Source: https://habr.com/ru/post/1613201/


All Articles