Export (0) Print
Expand All
Expand Minimize
1 out of 3 rated this helpful - Rate this topic

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()
{
}
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.