From c810a1889c3040673336c1286e471835fc0fc421 Mon Sep 17 00:00:00 2001 From: neingeist Date: Tue, 10 Dec 2013 17:48:47 +0100 Subject: [PATCH] use int main(void) for main, so clang won't complain about unused argc/argv --- circular-buffer.c | 2 +- linked-list.c | 2 +- mandelbrot.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/circular-buffer.c b/circular-buffer.c index 99fe89f..9045982 100644 --- a/circular-buffer.c +++ b/circular-buffer.c @@ -91,7 +91,7 @@ bool cb_read(cb_t * cb, elem_t * elem) { /* Test it. */ -int main(int argc, char *argv[]) { +int main(void) { /* Initialize empty CB_SIZE-element circular buffer. */ cb_t *test_cb = malloc(sizeof(cb_t)); if (!test_cb) diff --git a/linked-list.c b/linked-list.c index f477e7c..e668101 100644 --- a/linked-list.c +++ b/linked-list.c @@ -122,7 +122,7 @@ list_node_t* list_elementat(list_t *list, int i) { return cur; } -int main(int argc, char *argv[]) { +int main(void) { /* Test empty list */ list_t *emptylist = malloc(sizeof(list_t)); diff --git a/mandelbrot.c b/mandelbrot.c index c3875cb..1f20547 100644 --- a/mandelbrot.c +++ b/mandelbrot.c @@ -64,7 +64,7 @@ void drawmandelbrot(SDL_Surface * surface) { } } -int main(int argc, char *argv[]) { +int main(void) { /* Set up SDL. */ if (SDL_Init(SDL_INIT_EVERYTHING) < 0) { fprintf(stderr, "Error: Could not initialize SDL: %s.\n",