I also had this problem when creating project, choosing Visual Studio C++ that don't worked. After changing compiler to gnu gcc there was error like w3 ...
From settings, build options I had make all changes what needed but this error was stay. So I had decide to edit project file .cbp and I found there:
<Compiler>
<Add option="W3" />
</Compiler>
and instead W3 changed to -Wall as it was in another project file with correct build options.
<Compiler>
<Add option="-Wall" />
</Compiler>
That is all, after all works fine!