Skip to content

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

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

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

    bugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions