Compiler Warning (level 4) C4324
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Compiler Warning (level 4) C4324

Error Message

'struct_name' : structure was padded due to __declspec(align())

Padding was added at the end of a structure because you specified a __declspec(align) value.

For example, the following code generates C4324:

// C4324.cpp
// compile with: /W4
struct __declspec(align(32)) A
   char a;
};   // C4324

int main()
© 2015 Microsoft