Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 772 Bytes

compiler-error-c2719.md

File metadata and controls

22 lines (18 loc) · 772 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2719
Compiler Error C2719
11/04/2016
C2719
C2719
ea6236d3-8286-45cc-9478-c84ad3dd3c8e

Compiler Error C2719

'parameter': formal parameter with __declspec(align('#')) won't be aligned

The align __declspec modifier is not permitted on function parameters. Function parameter alignment is controlled by the calling convention used. For more information, see Calling Conventions.

The following sample generates C2719 and shows how to fix it:

// C2719.cpp
void func(int __declspec(align(32)) i);   // C2719
// try the following line instead
// void func(int i);