Compiler Warning (level 1) C4533
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Compiler Warning (level 1) C4533

Error Message

initialization of 'variable' is skipped by 'instruction'

An instruction in your program changed the flow of control, such that, an instruction that initialized a variable was not executed. The following sample generates C4533:

// C4533.cpp
// compile with: /W1
#include <stdio.h>

struct A
   int m_data;

int main()
   if (1)
      goto Label;

   A a = { 100 };

   Label:   // C4533
      printf("\n%d", a.m_data);   // prints an uninitialized value
© 2015 Microsoft