Pelles C forum
C language => Tips & tricks => Topic started by: Hemanth on January 22, 2017, 07:27:40 PM
-
int main(){
}
Produces this warning
warning #2117: Old-style function definition for 'main'.
Simple Solution
-----------------
int main(void){
}
-
This is not a bug.
C99-C11 requires parameters qualification. If you want to use the alternative form of main without parameters, allowed by standard, you must specify 'void' for no parameters.