Fixed GCC errors.

This commit is contained in:
bkaradzic 2014-04-27 18:22:07 -07:00
parent 5b31ef54a2
commit 0ca66108b4
2 changed files with 4 additions and 1 deletions

View file

@ -836,6 +836,7 @@ int fonsAddFont(struct FONScontext* stash, const char* name, const char* path)
FILE* fp = 0;
int dataSize = 0;
unsigned char* data = NULL;
size_t unused;
// Read in the font data.
fp = fopen(path, "rb");
@ -845,7 +846,8 @@ int fonsAddFont(struct FONScontext* stash, const char* name, const char* path)
fseek(fp,0,SEEK_SET);
data = (unsigned char*)malloc(dataSize);
if (data == NULL) goto error;
fread(data, 1, dataSize, fp);
unused = fread(data, 1, dataSize, fp);
(void)sizeof(unused);
fclose(fp);
fp = 0;

View file

@ -1218,6 +1218,7 @@ static struct NVGvertex* nvg__bevelJoin(struct NVGvertex* dst, struct NVGpoint*
float dlx1 = p1->dy;
float dly1 = -p1->dx;
NVG_NOTUSED(fringe);
NVG_NOTUSED(mu);
if (p1->flags & NVG_PT_LEFT) {
nvg__chooseBevel(p1->flags & NVG_PR_INNERBEVEL, p0, p1, lw, &lx0,&ly0, &lx1,&ly1);