Skip to content

Commit

Permalink
Fix 'warning: a function declaration without a prototype'
Browse files Browse the repository at this point in the history
  • Loading branch information
r-barnes committed Jan 16, 2023
1 parent 8c8509e commit 29673d7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/shputils.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ void error(void);
/* openfiles() */
/************************************************************************/

void openfiles() {
void openfiles(void) {
/* -------------------------------------------------------------------- */
/* Open the DBF file. */
/* -------------------------------------------------------------------- */
Expand Down Expand Up @@ -290,7 +290,7 @@ int i;
/* Find matching fields in the append file. */
/* Output file must have zero records to add any new fields. */
/* -------------------------------------------------------------------- */
void mergefields()
void mergefields(void)
{
int i,j;
ti = DBFGetFieldCount( hDBF );
Expand Down Expand Up @@ -353,7 +353,7 @@ void mergefields()
}


void findselect()
void findselect(void)
{
/* Find the select field name */
iselectitem = -1;
Expand All @@ -374,7 +374,7 @@ void findselect()

}

void showitems()
void showitems(void)
{
char stmp[40],slow[40],shigh[40];
double dtmp,dlow,dhigh,dsum,mean;
Expand Down Expand Up @@ -459,7 +459,7 @@ void showitems()
dgprintf("\n");
}

int selectrec()
int selectrec(void)
{
long int value, ty;

Expand Down Expand Up @@ -491,7 +491,7 @@ int selectrec()
}


void check_theme_bnd()
void check_theme_bnd(void)
{
if ( (adfBoundsMin[0] >= cxmin) && (adfBoundsMax[0] <= cxmax) &&
(adfBoundsMin[1] >= cymin) && (adfBoundsMax[1] <= cymax) )
Expand All @@ -513,7 +513,7 @@ void check_theme_bnd()
dgprintf("WARNING: Theme is outside the clip area."); /** SKIP THEME **/
}

int clip_boundary()
int clip_boundary(void)
{
int inside;
int prev_outside;
Expand Down Expand Up @@ -692,7 +692,7 @@ double findunit(char *unit)
/* -------------------------------------------------------------------- */
/* Display a usage message. */
/* -------------------------------------------------------------------- */
void error()
void error(void)
{
dgprintf( "The program will append to an existing shape file or it will" );
dgprintf( "create a new file if needed." );
Expand Down

0 comments on commit 29673d7

Please sign in to comment.