Hi.
I'm on Win 7 64 bits and just installed codeblocks-10.05mingw-setup.exe.
In Settings->Compiler and debbuger I've set the flags -ansi -Wall and -pedantic to show me all the warnings.
If I use this code and press F9 the program runs all the way and does not show me any warnings.
On the other and, if I press Ctrl+F11 (rebuild) now, on the build message log It shows the warning I was expecting
main.c||In function 'main':|
main.c|6|warning: unused variable 'c'|
||=== Build finished: 0 errors, 1 warnings ===|
Wasn't expected that the program didn't run and show me the exact same message as when doing rebuild?
What can I do to this warnings show when I press F9?
Regards,
mgoyanes
#include <stdio.h>
#include <stdlib.h>
int main()
{
int c;
printf("Hello world!\n");
return 0;
}