Silences a few build warnings

This commit is contained in:
Colin Dean 2018-04-08 11:49:07 -04:00
parent 8b91990a25
commit 3ecedd11dd
3 changed files with 3 additions and 3 deletions

2
font.h
View File

@ -269,7 +269,7 @@ static char header_data_cmap[256][3] = {
{255,255,255}, {255,255,255},
{255,255,255} {255,255,255}
}; };
static char header_data[] = { static char header_data[36000] = {
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,

View File

@ -16,7 +16,7 @@
#define HEIGHT (2*BORDER+DATA_HEIGHT+TEXT_HEIGHT) #define HEIGHT (2*BORDER+DATA_HEIGHT+TEXT_HEIGHT)
#define TEXT_HEIGHT 24 #define TEXT_HEIGHT 24
static unsigned char ary[WIDTH*HEIGHT]; static unsigned char ary[WIDTH * HEIGHT];
static unsigned char *file_label=(unsigned char *)""; /* The filename written in the static unsigned char *file_label=(unsigned char *)""; /* The filename written in the
file_label */ file_label */
static char *output_filename; /* The output filename */ static char *output_filename; /* The output filename */

View File

@ -316,7 +316,7 @@ static double angle(double x, double y)
{ {
double deg; double deg;
if (abs(x)>abs(y)){ if (fabs(x)>fabs(y)){
/* Horizontal */ /* Horizontal */
deg=180/M_PI*asin(y); deg=180/M_PI*asin(y);
if (x<0) deg=180-deg; if (x<0) deg=180-deg;