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;
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
int main(void) {
|
||||
// printf("sizeof(int) = %d\n", sizeof(int));
|
||||
|
||||
double mypi = approximate_pi(100000000);
|
||||
|
|
|
@ -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 };
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue