make pedantic clang happier by not specifying unused argc/argv
This commit is contained in:
parent
9308677458
commit
8d149f026a
3 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ double approximate_pi(unsigned int steps) {
|
||||||
return approximate_pi;
|
return approximate_pi;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(void) {
|
||||||
// printf("sizeof(int) = %d\n", sizeof(int));
|
// printf("sizeof(int) = %d\n", sizeof(int));
|
||||||
|
|
||||||
double mypi = approximate_pi(100000000);
|
double mypi = approximate_pi(100000000);
|
||||||
|
|
|
@ -5,7 +5,7 @@ struct test {
|
||||||
};
|
};
|
||||||
typedef struct test test_t;
|
typedef struct test test_t;
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(void) {
|
||||||
test_t a = { 23 };
|
test_t a = { 23 };
|
||||||
test_t b = { 42 };
|
test_t b = { 42 };
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ unsigned long mix(unsigned long a, unsigned long b, unsigned long c) {
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(void) {
|
||||||
unsigned long seed = mix(clock(), time(NULL), getpid());
|
unsigned long seed = mix(clock(), time(NULL), getpid());
|
||||||
srand(seed);
|
srand(seed);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue