We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hey, I'm trying to compile my project in keil IDE and arm compiler v6 with AC5-like warning.
When compiling I receive the following warning when compiling:
"warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]"
The code that causes this warning look like this :
#include "pack_struct_start.h" struct _LogPrametersStruct { uint8_t PatientID[ PATIENT_ID_SIZE ]; uint32_t MonStartTime; uint32_t MonStartDate; }; #include "pack_struct_end.h"
This includes are provided with FreeRtos and inside the fileis the acctuall:
#pragam pack(push,1) and,
#pragam (pop)
Is there a way to use this includes without receiving this warning/ disable only this warning when compiling.
The general way to disable a flag is to add no to it, e.g., add -Wno-pragma-pack to the compiler misc controls section in the project options.