mirror of
https://github.com/colindean/optar.git
synced 2025-03-11 22:17:40 +13:00
Merge pull request #8 from colindean/silence-warnings
Silences a few build warnings
This commit is contained in:
commit
94badc9693
11
Makefile
11
Makefile
@ -1,7 +1,14 @@
|
||||
CC?=gcc
|
||||
LDFLAGS=-lm
|
||||
CFLAGS=-O3 -Wall -Wuninitialized -fomit-frame-pointer -funroll-loops \
|
||||
-fstrength-reduce -DNODEBUG `libpng-config --I_opts`
|
||||
ifeq ($(CC), gcc)
|
||||
SPECIFIC_CFLAGS=-fstrength-reduce
|
||||
else
|
||||
SPECIFIC_CFLAGS=
|
||||
endif
|
||||
CFLAGS=-O3 -Wall -Wuninitialized \
|
||||
-fomit-frame-pointer -funroll-loops \
|
||||
$(SPECIFIC_CFLAGS) \
|
||||
-DNODEBUG `libpng-config --I_opts`
|
||||
|
||||
all: optar unoptar
|
||||
|
||||
|
2
font.h
2
font.h
@ -269,7 +269,7 @@ static char header_data_cmap[256][3] = {
|
||||
{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,
|
||||
|
6
optar.c
6
optar.c
@ -16,7 +16,7 @@
|
||||
#define HEIGHT (2*BORDER+DATA_HEIGHT+TEXT_HEIGHT)
|
||||
#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
|
||||
file_label */
|
||||
static char *output_filename; /* The output filename */
|
||||
@ -109,7 +109,7 @@ void border(void)
|
||||
memset(ptr,0,BORDER*WIDTH);
|
||||
}
|
||||
|
||||
void cross(x,y)
|
||||
void cross(int x, int y)
|
||||
{
|
||||
unsigned char *ptr=ary+y*WIDTH+x;
|
||||
unsigned c;
|
||||
@ -132,7 +132,7 @@ void crosses(void)
|
||||
}
|
||||
|
||||
/* x is in the range 0 to DATA_WIDTH-1 */
|
||||
void text_block (destx, srcx, width)
|
||||
void text_block (int destx, int srcx, int width)
|
||||
{
|
||||
int x, y;
|
||||
unsigned char *srcptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user