title: G++ 4.4 "uninitialized" variables
body: <p>I am using g++ on Ubuntu 10.10(64-bit) if the OS is at all relevant for the matter.
  I saw something strange so i decided to check and for some reason this code</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  int main()
  {
      int a;
  
      std::cout &lt;&lt; a &lt;&lt; std::endl;
  
      return 0;
  }
  </code></pre>
  
  <p>always prints 0. Obviously g++ does auto initialization of uninitialized variables to their corresponding null-value. The thing is I want to turn that feature off, or at least make g++ show warning about using uninitialized variables, since this way my code won't work well when compiled on VS for instance. Besides I'm pretty sure the C++ standard states that a variable which isn't implicitly initialized with some value has an undefined value amongst all it's possible values, which should in fact be different with every execution of the program, since different parts of the operating memory are used every time it's executed.</p>
  
  <p>Explicit question:  Is there a way to make g++ show warnings for uninitialized variables?</p>