From 0494a763402eada02bdd4d5c211816ac73745eb2 Mon Sep 17 00:00:00 2001 From: "Michael Hirsch, Ph.D" Date: Tue, 26 Nov 2019 23:06:51 -0500 Subject: c/cpp: removed unused args --- manual tests/1 wrap/main.c | 2 +- manual tests/10 svn wrap/prog.c | 2 +- manual tests/3 git wrap/prog.c | 2 +- manual tests/4 standalone binaries/myapp.cpp | 2 +- manual tests/5 rpm/main.c | 2 +- manual tests/6 hg wrap/prog.c | 2 +- manual tests/8 timeout/sleepprog.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'manual tests') diff --git a/manual tests/1 wrap/main.c b/manual tests/1 wrap/main.c index 39d3a9a..df6abe4 100644 --- a/manual tests/1 wrap/main.c +++ b/manual tests/1 wrap/main.c @@ -1,7 +1,7 @@ #include #include -int main(int argc, char **argv) { +int main(void) { sqlite3 *db; if(sqlite3_open(":memory:", &db) != SQLITE_OK) { printf("Sqlite failed.\n"); diff --git a/manual tests/10 svn wrap/prog.c b/manual tests/10 svn wrap/prog.c index df38000..6e2c4d8 100644 --- a/manual tests/10 svn wrap/prog.c +++ b/manual tests/10 svn wrap/prog.c @@ -1,6 +1,6 @@ #include"subproj.h" -int main(int argc, char **argv) { +int main(void) { subproj_function(); return 0; } diff --git a/manual tests/3 git wrap/prog.c b/manual tests/3 git wrap/prog.c index df38000..6e2c4d8 100644 --- a/manual tests/3 git wrap/prog.c +++ b/manual tests/3 git wrap/prog.c @@ -1,6 +1,6 @@ #include"subproj.h" -int main(int argc, char **argv) { +int main(void) { subproj_function(); return 0; } diff --git a/manual tests/4 standalone binaries/myapp.cpp b/manual tests/4 standalone binaries/myapp.cpp index 5acde46..8ddff27 100644 --- a/manual tests/4 standalone binaries/myapp.cpp +++ b/manual tests/4 standalone binaries/myapp.cpp @@ -3,7 +3,7 @@ #include #include -int main(int argc, char *argv[]) { +int main(void) { SDL_Surface *screenSurface; SDL_Event e; int keepGoing = 1; diff --git a/manual tests/5 rpm/main.c b/manual tests/5 rpm/main.c index 5c46721..8b1d193 100644 --- a/manual tests/5 rpm/main.c +++ b/manual tests/5 rpm/main.c @@ -1,6 +1,6 @@ #include #include -int main(int argc, char **argv) +int main(void) { char *t = meson_print(); printf("%s", t); diff --git a/manual tests/6 hg wrap/prog.c b/manual tests/6 hg wrap/prog.c index df38000..6e2c4d8 100644 --- a/manual tests/6 hg wrap/prog.c +++ b/manual tests/6 hg wrap/prog.c @@ -1,6 +1,6 @@ #include"subproj.h" -int main(int argc, char **argv) { +int main(void) { subproj_function(); return 0; } diff --git a/manual tests/8 timeout/sleepprog.c b/manual tests/8 timeout/sleepprog.c index e371482..8875e12 100644 --- a/manual tests/8 timeout/sleepprog.c +++ b/manual tests/8 timeout/sleepprog.c @@ -1,6 +1,6 @@ #include -int main(int argc, char **argv) { +int main(void) { sleep(1000); return 0; } -- cgit v1.1