Fix more warnings.
Linux build and mingw32 cross build warning-free now.
This commit is contained in:
parent
558b3c65f9
commit
46ab96b8fa
10
src/fcobjs.c
10
src/fcobjs.c
|
@ -24,15 +24,21 @@
|
||||||
|
|
||||||
#include "fcint.h"
|
#include "fcint.h"
|
||||||
|
|
||||||
|
static unsigned int
|
||||||
|
FcObjectTypeHash (register const char *str, register unsigned int len);
|
||||||
|
|
||||||
|
static const struct FcObjectTypeInfo *
|
||||||
|
FcObjectTypeLookup (register const char *str, register unsigned int len);
|
||||||
|
|
||||||
#include "fcobjshash.h"
|
#include "fcobjshash.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
static int next_id = FC_MAX_BASE_OBJECT + 1;
|
static fc_atomic_int_t next_id = FC_MAX_BASE_OBJECT + 1;
|
||||||
struct FcObjectOtherTypeInfo {
|
struct FcObjectOtherTypeInfo {
|
||||||
struct FcObjectOtherTypeInfo *next;
|
struct FcObjectOtherTypeInfo *next;
|
||||||
FcObjectType object;
|
FcObjectType object;
|
||||||
int id;
|
FcObject id;
|
||||||
} *other_types;
|
} *other_types;
|
||||||
|
|
||||||
static FcObjectType *
|
static FcObjectType *
|
||||||
|
|
|
@ -4,7 +4,7 @@ CUT_OUT_BEGIN
|
||||||
CUT_OUT_END
|
CUT_OUT_END
|
||||||
%}
|
%}
|
||||||
%struct-type
|
%struct-type
|
||||||
%language=C
|
%language=ANSI-C
|
||||||
%includes
|
%includes
|
||||||
%enum
|
%enum
|
||||||
%readonly-tables
|
%readonly-tables
|
||||||
|
|
Loading…
Reference in New Issue