mirror of
https://github.com/colindean/optar.git
synced 2025-03-11 22:17:40 +13:00
Silences a few build warnings
This commit is contained in:
parent
8b91990a25
commit
3ecedd11dd
2
font.h
2
font.h
@ -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,
|
||||||
|
2
optar.c
2
optar.c
@ -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 */
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user