Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 687 Bytes

compiler-warning-level-4-c4207.md

File metadata and controls

27 lines (21 loc) · 687 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 4) C4207
Compiler Warning (level 4) C4207
11/04/2016
C4207
C4207
f4e09e3e-ac87-4489-8e3f-c8f76b82e721

Compiler Warning (level 4) C4207

nonstandard extension used : extended initializer form

With Microsoft extensions (/Ze), you can initialize an unsized array of char using a string within braces.

Example

// C4207.c
// compile with: /W4
char c[] = { 'a', 'b', "cdefg" }; // C4207

int main()
{
}

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