Skip to content

fails to build under Raspbian - alignment of pointers #38

@CDKnightNASA

Description

@CDKnightNASA

Describe the bug
Trying to build under Raspbian, sample_app fails with "cast increases required alignment of target type" errors.

/home/pi/cFS/apps/sample_app/fsw/src/sample_app.c:365:25: error: cast increases required alignment of target type [-Werror=cast-align]
     CFE_SB_TimeStampMsg((CFE_SB_Msg_t *) &Sample_AppData.SAMPLE_HkTelemetryPkt);
                         ^
/home/pi/cFS/apps/sample_app/fsw/src/sample_app.c:366:20: error: cast increases required alignment of target type [-Werror=cast-align]
     CFE_SB_SendMsg((CFE_SB_Msg_t *) &Sample_AppData.SAMPLE_HkTelemetryPkt);

To Reproduce
Build on Raspbian.

Expected behavior
Should not cause warnings/errors.

Code snips

System observed on:
Raspberry Pi Zero W

Additional context
Add any other context about the problem here.

Reporter Info
Christopher.D.Knight@nasa.gov

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions