Fix more warnings.
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 2 Jan 2013 23:52:00 +0000 (17:52 -0600)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 3 Jan 2013 00:00:09 +0000 (18:00 -0600)
Linux build and mingw32 cross build warning-free now.

src/fcobjs.c
src/fcobjshash.gperf.h

index b3bb200..1aa4a77 100644 (file)
 
 #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 <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 *next;
     FcObjectType object;
-    int id;
+    FcObject id;
 } *other_types;
 
 static FcObjectType *
index 94002b1..dafac1b 100644 (file)
@@ -4,7 +4,7 @@ CUT_OUT_BEGIN
 CUT_OUT_END
 %}
 %struct-type
-%language=C
+%language=ANSI-C
 %includes
 %enum
 %readonly-tables