Skip to content

Implicit (compiler-added) padding in SAMPLE_APP_Data_t struct #240

@thnkslprpt

Description

@thnkslprpt

Checklist

  • I reviewed the Contributing Guide.
  • I performed a cursory search to see if the bug report is relevant, not redundant, nor in conflict with other tickets.

Describe the bug
Seems to be some implicit padding added here after ErrCounter.

Code snips

typedef struct
{
/*
** Command interface counters...
*/
uint8 CmdCounter;
uint8 ErrCounter;
/*
** Housekeeping telemetry packet...
*/
SAMPLE_APP_HkTlm_t HkTlm;
/*
** Run Status variable used in the main processing loop
*/
uint32 RunStatus;
/*
** Operational data (not reported in housekeeping)...
*/
CFE_SB_PipeId_t CommandPipe;
CFE_TBL_Handle_t TblHandles[SAMPLE_APP_NUMBER_OF_TABLES];
} SAMPLE_APP_Data_t;

Expected behavior
Make the implicit padding explicit.

Reporter Info
Avi Weiss   @thnkslprpt

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