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 3) C4065
Collapse the table of content
Expand the table of content

Compiler Warning (level 3) C4065

Error Message

switch statement contains 'default' but no 'case' labels

The switch statement specifies a default case only. This is equivalent to a sequence of statements.

Example

// C4065.cpp
// compile with: /W3
void func(int i)
{
   switch(i)
   {
      default:
         i++;
   }   // C4065
}

int main()
{
}

Community Additions

ADD
Show:
© 2015 Microsoft