From 6bb78124abaf6493c3f76444ef3179bbdea01cbc Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Wed, 9 Sep 2015 10:41:14 +0200 Subject: [PATCH] Plain C/CPP Wizards: Use proper main signature Change-Id: I1d6e83cda2685201aa4126e993dac85cda8315b3 Reviewed-by: Orgad Shaneh --- share/qtcreator/templates/wizards/projects/plainc/main.c | 2 +- share/qtcreator/templates/wizards/projects/plaincpp/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;