Local XXX is initialized but never used.

Started by real, October 12, 2005, 01:56:30 PM

Previous topic - Next topic

real

Hi,

why do i get a "warning #2115: Local 'i' is initialized but never used." while compiling this code:


  int i = -1;

  AllocConsole();

  i = setvbuf(stdout, NULL, _IONBF, 0);

?

Pelle

Because you are only assigning values to i, never using the value of i...

Pelle
/Pelle