Use of #pragma align

The PORTING checkers identify code that might rely on specific implementation details in different compilers. The PORTING.PRAGMA.ALIGN checker detects #pragma align usage.

Vulnerability and risk

This checker warns you of situations in which the "align" pragma is used, so that you can plan your approach to a new platform appropriately. Since this pragma can significantly affect the layout of data structures in memory, that alignment must be taken into account in ported code, for example in data transmission or persistent storage.