Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Visual C++
C/C++ Build Errors
 Compiler Warning (level 1 and level...
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual C++ Concepts: Building a C/C++ Program
Compiler Warning (level 1 and level 4) C4700

Error Message

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
}
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker