Remove some unused variables, and initialize some other ones so gcc doesn't
warn us.
This commit is contained in:
parent
996580dce5
commit
12d49d3cf4
|
@ -1,3 +1,8 @@
|
||||||
|
2003-04-17 Colin Walters <walters@debian.org>
|
||||||
|
|
||||||
|
+ Remove some unused variables, and initialize some other ones so
|
||||||
|
gcc doesn't warn us.
|
||||||
|
|
||||||
2003-04-16 Keith Packard <keithp@keithp.com>
|
2003-04-16 Keith Packard <keithp@keithp.com>
|
||||||
|
|
||||||
+ tag version 2.1.94
|
+ tag version 2.1.94
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
typedef enum { False, True } Bool;
|
typedef enum { False, True } Bool;
|
||||||
|
|
|
@ -259,8 +259,8 @@ bail0:
|
||||||
static int
|
static int
|
||||||
FcLangSetIndex (const FcChar8 *lang)
|
FcLangSetIndex (const FcChar8 *lang)
|
||||||
{
|
{
|
||||||
int low, high, mid;
|
int low, high, mid = 0;
|
||||||
int cmp;
|
int cmp = 0;
|
||||||
FcChar8 firstChar = FcToLower(lang[0]);
|
FcChar8 firstChar = FcToLower(lang[0]);
|
||||||
|
|
||||||
if (firstChar < 'a')
|
if (firstChar < 'a')
|
||||||
|
@ -582,7 +582,6 @@ static FcBool
|
||||||
FcLangSetContainsLang (const FcLangSet *ls, const FcChar8 *lang)
|
FcLangSetContainsLang (const FcLangSet *ls, const FcChar8 *lang)
|
||||||
{
|
{
|
||||||
int id;
|
int id;
|
||||||
FcLangResult r;
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
id = FcLangSetIndex (lang);
|
id = FcLangSetIndex (lang);
|
||||||
|
@ -613,7 +612,6 @@ FcLangSetContainsLang (const FcLangSet *ls, const FcChar8 *lang)
|
||||||
{
|
{
|
||||||
FcStrList *list = FcStrListCreate (ls->extra);
|
FcStrList *list = FcStrListCreate (ls->extra);
|
||||||
FcChar8 *extra;
|
FcChar8 *extra;
|
||||||
FcLangResult r;
|
|
||||||
|
|
||||||
if (list)
|
if (list)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue