|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) C4431
Error Messagemissing type specifier - int assumed. Note: C no longer supports default-int
This error can be generated as a result of compiler conformance work that was done for Visual C++ 2005: Visual C++ no longer creates untyped identifiers as int by default. The type of an identifier must be specified explicitly. Seefor more information.
This warning is off by default. Seefor more information.
The following sample generates C4431.
// C4431.c // compile with: /c /W4 #pragma warning(default:4431) i; // C4431 int i; // OK