Avoid an unused variable diagnostic in newest emscripten
This commit is contained in:
parent
9c55e8ff58
commit
ca25b06189
1 changed files with 1 additions and 10 deletions
11
bdfread.c
11
bdfread.c
|
|
@ -263,8 +263,7 @@ bdfReadCharacters(FontFilePtr file, FontPtr pFont, bdfFileState *pState,
|
||||||
register CharInfoPtr ci;
|
register CharInfoPtr ci;
|
||||||
int i,
|
int i,
|
||||||
ndx,
|
ndx,
|
||||||
nchars,
|
nchars;
|
||||||
nignored;
|
|
||||||
unsigned int char_row, char_col;
|
unsigned int char_row, char_col;
|
||||||
int numEncodedGlyphs = 0;
|
int numEncodedGlyphs = 0;
|
||||||
CharInfoPtr *bdfEncoding[256];
|
CharInfoPtr *bdfEncoding[256];
|
||||||
|
|
@ -332,7 +331,6 @@ bdfReadCharacters(FontFilePtr file, FontPtr pFont, bdfFileState *pState,
|
||||||
pFont->info.lastRow = 0;
|
pFont->info.lastRow = 0;
|
||||||
pFont->info.firstCol = 256;
|
pFont->info.firstCol = 256;
|
||||||
pFont->info.lastCol = 0;
|
pFont->info.lastCol = 0;
|
||||||
nignored = 0;
|
|
||||||
for (ndx = 0; (ndx < nchars) && (line) && (bdfIsPrefix(line, "STARTCHAR"));) {
|
for (ndx = 0; (ndx < nchars) && (line) && (bdfIsPrefix(line, "STARTCHAR"));) {
|
||||||
int t;
|
int t;
|
||||||
int wx; /* x component of width */
|
int wx; /* x component of width */
|
||||||
|
|
@ -368,7 +366,6 @@ bdfReadCharacters(FontFilePtr file, FontPtr pFont, bdfFileState *pState,
|
||||||
ignore = 0;
|
ignore = 0;
|
||||||
if (enc == -1) {
|
if (enc == -1) {
|
||||||
if (!bitmapExtra) {
|
if (!bitmapExtra) {
|
||||||
nignored++;
|
|
||||||
ignore = 1;
|
ignore = 1;
|
||||||
}
|
}
|
||||||
} else if (enc > MAXENCODING) {
|
} else if (enc > MAXENCODING) {
|
||||||
|
|
@ -496,12 +493,6 @@ bdfReadCharacters(FontFilePtr file, FontPtr pFont, bdfFileState *pState,
|
||||||
* ENDFONT */
|
* ENDFONT */
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
if (ndx + nignored != nchars) {
|
|
||||||
bdfError("%d too few characters\n", nchars - (ndx + nignored));
|
|
||||||
goto BAILOUT;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
nchars = ndx;
|
nchars = ndx;
|
||||||
bitmapFont->num_chars = nchars;
|
bitmapFont->num_chars = nchars;
|
||||||
if ((line) && (bdfIsPrefix(line, "STARTCHAR"))) {
|
if ((line) && (bdfIsPrefix(line, "STARTCHAR"))) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue