diff options
Diffstat (limited to 'Build/source/utils/ps2eps/bbox.c')
-rw-r--r-- | Build/source/utils/ps2eps/bbox.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Build/source/utils/ps2eps/bbox.c b/Build/source/utils/ps2eps/bbox.c index 4a7f87a6dbc..cc3c492ac40 100644 --- a/Build/source/utils/ps2eps/bbox.c +++ b/Build/source/utils/ps2eps/bbox.c @@ -55,12 +55,14 @@ unsigned char bitval[8]= 1 }; -unsigned int minus_one(const unsigned x) +static unsigned int +minus_one(const unsigned x) { return (x == 0) ? x : x-1; } -unsigned int plus_one(const unsigned x) +static unsigned int +plus_one(const unsigned x) { return (x == (unsigned int) ~0U) ? x : x+1; } @@ -81,9 +83,10 @@ unsigned int plus_one(const unsigned x) * and printed to stdout * ************************************************************************/ /* calculate the bounding box in postscript points, given a resolution in dpi */ -void readppm_and_calcbb(const char *name, - const unsigned int resolution, - const unsigned char tight) +static void +readppm_and_calcbb(const char *name, + const unsigned int resolution, + const unsigned char tight) { FILE *inputfile; char inputline[1024]; @@ -166,6 +169,7 @@ void readppm_and_calcbb(const char *name, #ifdef DEBUG fprintf(stderr,"\nreading picture: %s X: %u Y: %u\n",name,xmax,ymax); #endif + x = 0; /* avoid uninitialized warning */ x_min= xmax; x_max= 0; y_min= ymax; |