Skip to content

problems with __packed__ #23

@duchonic

Description

@duchonic

I use some

/**
 * @brief user data memory (NFC EEPROM)
 * @ingroup data
 */
struct __attribute__((__packed__)) EepromData {
	MagicNumber magicNumber;
	SensorConfiguration sensorConfiguraiton;
	Display display;
...
};

and got

Processing memory/data.c as C/C++ (c)
memory/data.c(50): syntax error at token (
memory/data.c(50): trying to match class_suffix at '('
memory/data.c(50): syntax error at token __packed__
memory/data.c(50): trying to match link_item at '__packed__'
memory/data.c(50): syntax error at token __packed__
memory/data.c(50): trying to match link_item at '__packed__'
memory/data.c(50): syntax error at token )
memory/data.c(50): trying to match start at ')'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions