This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

-Wpragma-pcak warning when compiling with version arm compiler v6 when using the FREE-Rtos include for the #pack option

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.