Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Warning (level 1) C4218
Collapse the table of content
Expand the table of content

Compiler Warning (level 1) C4218

Error Message

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).

Community Additions

ADD
Show:
© 2015 Microsoft