Skip to content

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

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;
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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