Skip to content

error #2638: The alignment of an array element is greater than the element size #9

@mavaneerden

Description

@mavaneerden

Issue

When using the __shared() macro with a single byte variable, the error error #2638: The alignment of an array element is greater than the element size occurs. This happens because the FRAM_data_t struct alignment is 2 bytes, while its contents are only 1 byte.

How to reproduce

Create a thread with the following shared variables:

__shared(
    uint8_t some_byte;
)

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