Hey guys!
I recently updated code::blocks to the new version for my home laptop and I always compile using the LCC compiler.
Before the upgrade - this:
Code:
//....
int main(int argv, char* argc[])
{
}
Gave me this:
Code:
||=== Build finished: 0 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
Output from Dir: $C://AdaSkylaRose/C/demo.c
However, the exact same definition of function main after the upgrade gave me this:
Code:
||=== Build finished: 0 error(s), 3 warning(s) (0 minute(s), 0 second(s)) ===|
Output from Dir: $C://AdaSkylaRose/C/demo.c
main.c|15|parameter 'pointer to pointer to char argc' is not referenced|
main.c|15|parameter 'int argv' is not referenced|
main.c|15|definition of function main is non C11 standard
I have never seen these warnings before. I do not know if the reason is the updating of code::blocks has forced the LCC compiler to update with it (thus implementing the new standard?) but if I change it to simply:
It compiles fine with no warnings. Anyone know or seen this before?
Ada x