Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 963 Bytes

compiler-warning-level-1-and-level-4-c4949.md

File metadata and controls

31 lines (24 loc) · 963 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 1 and level 4) C4949
Compiler Warning (level 1 and level 4) C4949
11/04/2016
C4949
C4949
34f45a05-c115-49cb-9f67-0bd4f0735d9b

Compiler Warning (level 1 and level 4) C4949

pragmas 'managed' and 'unmanaged' are meaningful only when compiled with '/clr[:option]'

The compiler ignores the managed and unmanaged pragmas if the source code is not compiled with /clr. This warning is informational.

The following sample generates C4949:

// C4949.cpp
// compile with: /LD /W1
#pragma managed   // C4949

When #pragma unmanaged is used without /clr, C4949 is a level 4 warning.

The following sample generates C4949:

// C4949b.cpp
// compile with: /LD /W4
#pragma unmanaged   // C4949