Skip to content

Commit

Permalink
r.horizon: fix -Wdeprecated-non-prototype warnings (#2798)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilason committed Feb 1, 2023
1 parent 6c1bdd7 commit d9f0b25
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions raster/r.horizon/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,9 +664,7 @@ int OUTGR(int numrows, int numcols)
return 1;
}

double amax1(arg1, arg2)
double arg1;
double arg2;
double amax1(double arg1, double arg2)
{
double res;

Expand All @@ -679,9 +677,7 @@ double arg2;
return res;
}

double amin1(arg1, arg2)
double arg1;
double arg2;
double amin1(double arg1, double arg2)
{
double res;

Expand All @@ -694,9 +690,7 @@ double arg2;
return res;
}

int min(arg1, arg2)
int arg1;
int arg2;
int min(int arg1, int arg2)
{
int res;

Expand All @@ -709,9 +703,7 @@ int arg2;
return res;
}

int max(arg1, arg2)
int arg1;
int arg2;
int max(int arg1, int arg2)
{
int res;

Expand Down

0 comments on commit d9f0b25

Please sign in to comment.