Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
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.

Compiler Warning (level 1 and level 4) C4700

uninitialized local variable 'name' used

You used the local variable name without first assigning it a value, which could lead to unpredictable results.

The following sample generates C4700:

// C4700.cpp
// compile with: /W1
int main() {
   int i;
   return i;   // C4700

Under /clr:safe this is a level 4 warning. The following sample generates C4700:

// C4700b.cpp
// compile with: /W4 /clr:safe /c
using namespace System;
int main() {
   Int32^ bi;
   return *bi;   // C4700

Community Additions

© 2015 Microsoft