Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 712 Bytes

compiler-warning-level-1-c4218.md

File metadata and controls

27 lines (21 loc) · 712 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 1) C4218
Compiler Warning (level 1) C4218
11/04/2016
C4218
C4218
d6c3cd90-4518-49e9-ae86-4ba9e2761d98

Compiler Warning (level 1) C4218

nonstandard extension used : must specify at least a storage class or a type

With the default Microsoft extensions (/Ze), you can declare a variable without specifying a type or storage class. The default type is int.

Example

// C4218.c
// compile with: /W4
i;  // C4218

int main()
{
}

Such declarations are invalid under ANSI compatibility (/Za).