From 8d149f026aad4e90859ef9c56e2af323f786f85d Mon Sep 17 00:00:00 2001 From: neingeist Date: Mon, 9 Dec 2013 07:49:20 +0100 Subject: [PATCH] make pedantic clang happier by not specifying unused argc/argv --- approximate-pi.c | 2 +- structs.c | 2 +- wo-lernen.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/approximate-pi.c b/approximate-pi.c index cff7d98..9dcf6f8 100644 --- a/approximate-pi.c +++ b/approximate-pi.c @@ -18,7 +18,7 @@ double approximate_pi(unsigned int steps) { return approximate_pi; } -int main(int argc, char *argv[]) { +int main(void) { // printf("sizeof(int) = %d\n", sizeof(int)); double mypi = approximate_pi(100000000); diff --git a/structs.c b/structs.c index 1745467..8dbd7e1 100644 --- a/structs.c +++ b/structs.c @@ -5,7 +5,7 @@ struct test { }; typedef struct test test_t; -int main(int argc, char *argv[]) { +int main(void) { test_t a = { 23 }; test_t b = { 42 }; diff --git a/wo-lernen.c b/wo-lernen.c index c93df92..10ea0fc 100644 --- a/wo-lernen.c +++ b/wo-lernen.c @@ -17,7 +17,7 @@ unsigned long mix(unsigned long a, unsigned long b, unsigned long c) { return c; } -int main(int argc, char* argv[]) { +int main(void) { unsigned long seed = mix(clock(), time(NULL), getpid()); srand(seed);