This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

#C/C++ compiler in CCSv5.1 - C6000 - Additional warnings reported (#1173-D attribute "packed" ignored)

Gents,

One of my code compiles well when using CCSV4.2, pardon me I do not know which compiler version is used there. I have been recently trying the new compiler using CCSv5.1 and one of my code compiles with warnings. It sounds like the compiler is not able to understand something like:

typedef struct _COMMAND_PKT_TX {...} __attribute__ ((packed)) struct; 

Warning 1173-D is triggered. Obviously I need my data structures to be aligned on1 byte and this is why my code was like that on CCSv4. Does it means the new compiler having a default 1 byte alignment or that the alignment needs to be specified in the compiler options?

Any help would be greatly appreciated!

Best Regards,

Arnaud