use int main(void) for main, so clang won't complain about unused argc/argv

master
neingeist 11 years ago
parent f04c4686c6
commit c810a1889c

@ -91,7 +91,7 @@ bool cb_read(cb_t * cb, elem_t * elem) {
/* Test it. */ /* Test it. */
int main(int argc, char *argv[]) { int main(void) {
/* Initialize empty CB_SIZE-element circular buffer. */ /* Initialize empty CB_SIZE-element circular buffer. */
cb_t *test_cb = malloc(sizeof(cb_t)); cb_t *test_cb = malloc(sizeof(cb_t));
if (!test_cb) if (!test_cb)

@ -122,7 +122,7 @@ list_node_t* list_elementat(list_t *list, int i) {
return cur; return cur;
} }
int main(int argc, char *argv[]) { int main(void) {
/* Test empty list */ /* Test empty list */
list_t *emptylist = malloc(sizeof(list_t)); list_t *emptylist = malloc(sizeof(list_t));

@ -64,7 +64,7 @@ void drawmandelbrot(SDL_Surface * surface) {
} }
} }
int main(int argc, char *argv[]) { int main(void) {
/* Set up SDL. */ /* Set up SDL. */
if (SDL_Init(SDL_INIT_EVERYTHING) < 0) { if (SDL_Init(SDL_INIT_EVERYTHING) < 0) {
fprintf(stderr, "Error: Could not initialize SDL: %s.\n", fprintf(stderr, "Error: Could not initialize SDL: %s.\n",

Loading…
Cancel
Save