1diff --git a/ext/fast_xs/fast_xs.c b/ext/fast_xs/fast_xs.c
2index 11ef71f..d5eb8d8 100644
3--- a/ext/fast_xs/fast_xs.c
4+++ b/ext/fast_xs/fast_xs.c
5@@ -144,7 +144,7 @@ static VALUE unpack_utf8(VALUE self)
6 return rb_funcall(self, unpack_id, 1, U_fmt);
7 }
8
9-static VALUE unpack_uchar(VALUE self)
10+static VALUE unpack_uchar(VALUE self, VALUE _exn)
11 {
12 return rb_funcall(self, unpack_id, 1, C_fmt);
13 }
14diff --git a/ext/hpricot_scan/hpricot_scan.c b/ext/hpricot_scan/hpricot_scan.c
15index f11cbb5..161ebd4 100644
16--- a/ext/hpricot_scan/hpricot_scan.c
17+++ b/ext/hpricot_scan/hpricot_scan.c
18@@ -22,7 +22,7 @@ struct hpricot_struct {
19 #define RSTRING_PTR(str) RSTRING(str)->ptr
20 #endif
21
22-VALUE hpricot_css(VALUE, VALUE, VALUE, VALUE, VALUE);
23+VALUE hpricot_css(VALUE, VALUE, VALUE, VALUE);
24
25 #define NO_WAY_SERIOUSLY "*** This should not happen, please file a bug report with the HTML you're parsing at http://github.com/hpricot/hpricot/issues. So sorry!"
26
27diff --git a/ext/hpricot_scan/hpricot_scan.rl b/ext/hpricot_scan/hpricot_scan.rl
28index 0f17f11..8b00a38 100644
29--- a/ext/hpricot_scan/hpricot_scan.rl
30+++ b/ext/hpricot_scan/hpricot_scan.rl
31@@ -20,7 +20,7 @@ struct hpricot_struct {
32 #define RSTRING_PTR(str) RSTRING(str)->ptr
33 #endif
34
35-VALUE hpricot_css(VALUE, VALUE, VALUE, VALUE, VALUE);
36+VALUE hpricot_css(VALUE, VALUE, VALUE, VALUE);
37
38 #define NO_WAY_SERIOUSLY "*** This should not happen, please file a bug report with the HTML you're parsing at http://github.com/hpricot/hpricot/issues. So sorry!"
39
40@@ -806,7 +806,7 @@ make_hpricot_struct(VALUE members, VALUE (*alloc)(VALUE klass))
41 for (i = 0; i < len; i++) {
42 ID id = SYM2ID(rb_ary_entry(members, i));
43 const char* name = rb_id2name(id);
44- int len = strlen(name);
45+ size_t len = strlen(name);
46
47 memcpy(attr_set, name, strlen(name));
48 attr_set[len] = '=';