diff --git a/share/qtcreator/templates/wizards/projects/plainc/main.c b/share/qtcreator/templates/wizards/projects/plainc/main.c index 8192ca7faf0..4a769516dd6 100644 --- a/share/qtcreator/templates/wizards/projects/plainc/main.c +++ b/share/qtcreator/templates/wizards/projects/plainc/main.c @@ -1,6 +1,6 @@ #include -int main(void) +int main(int argc, char *argv[]) { printf("Hello World!\\n"); return 0; diff --git a/share/qtcreator/templates/wizards/projects/plaincpp/main.cpp b/share/qtcreator/templates/wizards/projects/plaincpp/main.cpp index 0f458918994..2e0fc7fc6f1 100644 --- a/share/qtcreator/templates/wizards/projects/plaincpp/main.cpp +++ b/share/qtcreator/templates/wizards/projects/plaincpp/main.cpp @@ -3,7 +3,7 @@ using namespace std; -int main() +int main(int argc, char *argv[]) { cout << "Hello World!" << endl; return 0;