Skip to content
Browse files

WaE: -Wunused-variable

  • Loading branch information...
1 parent d35b5e0 commit 2d78e5039d8778b78e3d6e03199da56169946809 @khaledhosny khaledhosny committed
Showing with 6 additions and 13 deletions.
  1. +1 −3 fontforge/charview.c
  2. +1 −1 fontforge/encoding.c
  3. +1 −4 fontforge/featurefile.c
  4. +3 −3 fontforge/prefs.c
  5. +0 −1 fontforge/usermenu.c
  6. +0 −1 gutils/giofile.c
View
4 fontforge/charview.c
@@ -1123,9 +1123,7 @@ void CVDrawSplineSet(CharView *cv, GWindow pixmap, SplinePointList *set,
void CVDrawSplineSetOutlineOnly(CharView *cv, GWindow pixmap, SplinePointList *set,
Color fg, int dopoints, DRect *clip, enum outlinesfm_flags strokeFillMode ) {
- Spline *spline, *first;
SplinePointList *spl;
- int truetype_markup = set==cv->b.gridfit && cv->dv!=NULL;
int currentSplineCounter = 0;
if( strokeFillMode == sfm_fill ) {
@@ -2309,7 +2307,7 @@ return; /* no points. no side bearings */
}
static int CVExposeGlyphFill(CharView *cv, GWindow pixmap, GEvent *event, DRect* clip ) {
- int i, layer, rlayer, cvlayer = CVLayer((CharViewBase *) cv);
+ int layer, cvlayer = CVLayer((CharViewBase *) cv);
int filled = 0;
if (( cv->showfore || cv->b.drawmode==dm_fore ) && cv->showfilled &&
cv->filled!=NULL ) {
View
2 fontforge/encoding.c
@@ -532,7 +532,7 @@ return;
static Encoding *ParseConsortiumEncodingFile(FILE *file) {
char buffer[200];
int32 encs[0x10000];
- int enc, unienc, max, i;
+ int enc, unienc, max;
Encoding *item;
memset(encs, 0, sizeof(encs));
View
5 fontforge/featurefile.c
@@ -4702,10 +4702,7 @@ static void fea_ParsePosition(struct parseState *tok, int enumer) {
/* <marked glyph pos sequence> => context chaining */
/* [ignore pos] <marked glyph sequence> (, <marked g sequence>)* */
struct markedglyphs *glyphs = fea_ParseMarkedGlyphs(tok,true,true,false), *g;
- int cnt, i;
- struct feat_item *item;
- char *start, *pt, ch;
- SplineChar *sc;
+ int cnt;
fea_ParseTok(tok);
for ( cnt=0, g=glyphs; g!=NULL; g=g->next, ++cnt );
View
6 fontforge/prefs.c
@@ -2594,10 +2594,10 @@ void PrefsSubSetDlg(CharView *cv,char* windowTitle,struct prefs_list* plist) {
GWindowAttrs wattrs;
GGadgetCreateData *pgcd, gcd[20], sgcd[45], mgcd[3], mfgcd[9], msgcd[9];
GGadgetCreateData mfboxes[3], *mfarray[14];
- GGadgetCreateData mpboxes[3], *mparray[14];
- GGadgetCreateData sboxes[2], *sarray[50];
+ GGadgetCreateData mpboxes[3];
+ GGadgetCreateData sboxes[2];
GGadgetCreateData mboxes[3], mboxes2[5], *varray[5], *harray[8];
- GTextInfo *plabel, **list, label[20], slabel[45], *plabels[TOPICS+5], mflabels[9], mslabels[9];
+ GTextInfo *plabel, label[20], slabel[45], mflabels[9], mslabels[9];
GTabInfo aspects[TOPICS+5], subaspects[3];
GGadgetCreateData **hvarray, boxes[2*TOPICS];
struct pref_data p;
View
1 fontforge/usermenu.c
@@ -182,7 +182,6 @@ InsertSubMenus(menu_info_func func,
int i;
int j;
GMenuItem2 *mmn;
- unichar_t *submenuu;
for (i = 0; submenu_names[i] != NULL; ++i) {
unichar_t *submenuu = utf82u_copy(submenu_names[i]);
View
1 gutils/giofile.c
@@ -46,7 +46,6 @@ static unichar_t err409[] = { ' ','C','o','n','f','l','i','c','t', '\0' };
static unichar_t err412[] = { ' ','P','r','e','c','o','n','d','i','t','i','o','n',' ','F','a','i','l','e','d', '\0' };
static unichar_t err414[] = { ' ','R','e','q','u','e','s','t','-','U','R','I',' ','T','o','o',' ','L','o','n','g', '\0' };
static unichar_t err500[] = { ' ','I','n','t','e','r','n','a','l',' ','S','e','r','v','e','r',' ','E','r','r','o','r', '\0' };
-static unichar_t err501[] = { ' ','N','o','t',' ','I','m','p','l','e','m','e','n','t','e','d', '\0' };
void _GIO_reporterror(GIOControl *gc, int errn) {

0 comments on commit 2d78e50

Please sign in to comment.
Something went wrong with that request. Please try again.