]> git.wh0rd.org - fontconfig.git/commitdiff
Eliminate unused vars reported by Intel's compiler.
authorPatrick Lam <plam@MIT.EDU>
Tue, 21 Feb 2006 15:40:18 +0000 (15:40 +0000)
committerPatrick Lam <plam@MIT.EDU>
Tue, 21 Feb 2006 15:40:18 +0000 (15:40 +0000)
reviewed by: plam

ChangeLog
fc-list/fc-list.c
src/fcfreetype.c
src/fcstr.c
src/fcxml.c

index 6e2080436f45b1cfd682431dd397305165633817..0aed5dcbbd796f8d22908c70336db3a61eacd407 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2006-02-21  Kjartan Maraas  <kmaraas@gnome.org>
+       reviewed by: plam
+
+       * fc-list/fc-list.c (main):
+       * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing):
+       * src/fcstr.c (FcStrStr):
+       * src/fcxml.c (FcConfigSaveAttr):
+
+       Eliminate unused vars reported by Intel's compiler.
+
 2006-02-21  Aiet Kolkhi  <aietkolkhi@gmail.com>
        reviewed by: plam
 
index 48fbb601449f206260e6342caa72ea8c84dea2d7..d8a33645c299e680927326a8fc61101432a9871a 100644 (file)
@@ -85,7 +85,7 @@ static void usage (char *program)
 int
 main (int argc, char **argv)
 {
-    int                verbose = 0;
+    /*int              verbose = 0;*/
     int                i;
     FcObjectSet *os = 0;
     FcFontSet  *fs;
@@ -105,7 +105,7 @@ main (int argc, char **argv)
                     FC_MAJOR, FC_MINOR, FC_REVISION);
            exit (0);
        case 'v':
-           verbose = 1;
+           /* verbose = 1; */
            break;
        default:
            usage (argv[0]);
index cc73f5ce4154993887855a52e35f2e1ead6be152..4ce9f961c6259684e3fb51e006e3048271fc1985 100644 (file)
@@ -2433,7 +2433,7 @@ FcFreeTypeCheckGlyph (FT_Face face, FcChar32 ucs4,
 FcCharSet *
 FcFreeTypeCharSetAndSpacing (FT_Face face, FcBlanks *blanks, int *spacing)
 {
-    FcChar32       page, off, max, ucs4;
+    FcChar32       page, off, ucs4;
 #ifdef CHECK
     FcChar32       font_max = 0;
 #endif
@@ -2514,7 +2514,6 @@ FcFreeTypeCharSetAndSpacing (FT_Face face, FcBlanks *blanks, int *spacing)
        {
            FT_UInt gindex;
          
-           max = fcFontDecoders[o].max;
            /*
             * Find the first encoded character in the font
             */
index b60c082b2be06bd2ea5c3a46db5e1b176425c7be..c177e0774a69a2036bcd21a45d8f36a302afd923 100644 (file)
@@ -449,8 +449,7 @@ again:
        ++ s1;
        ++ s2;
     }
-
-    return 0;
+    /* never reached. */
 }
 
 int
index 817486fe04fb08f55e44c11ca909f38f304744e3..9aee89891a0ff6a758f797e06ade66985db1ce67 100644 (file)
@@ -924,7 +924,6 @@ FcVStackElements (FcConfigParse *parse)
 static FcChar8 **
 FcConfigSaveAttr (const XML_Char **attr)
 {
-    int                n;
     int                slen;
     int                i;
     FcChar8    **new;
@@ -935,7 +934,6 @@ FcConfigSaveAttr (const XML_Char **attr)
     slen = 0;
     for (i = 0; attr[i]; i++)
        slen += strlen ((char *) attr[i]) + 1;
-    n = i;
     new = malloc ((i + 1) * sizeof (FcChar8 *) + slen);
     if (!new)
        return 0;