Compiler Warning (level 1) C4329
alignment specifier is ignored on enum
Use of the alignment specifiers on enum
isn't allowed. This pattern includes the use of the align
__declspec
modifier. The following sample generates C4329:
// C4329.cpp
// compile with: /W1 /LD
enum __declspec(align(256)) TestEnum { // C4329
TESTVAL1,
TESTVAL2,
TESTVAL3
};
__declspec(align(256)) enum TestEnum1;
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for