summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-09-07 16:55:13 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-09-07 16:55:13 +0000
commit303838617cba2f914b80937d73e38e972c4bb319 (patch)
treeb7d27f341b4b31c47f67d08a279721307766c319 /src
parentfb3d1d20eb1ed755a9335899030e6c09459e0041 (diff)
downloadlibhubbub-303838617cba2f914b80937d73e38e972c4bb319.tar.gz
libhubbub-303838617cba2f914b80937d73e38e972c4bb319.tar.bz2
Fix build failures. Quite how these were missed before, I don't know.
svn path=/trunk/hubbub/; revision=5277
Diffstat (limited to 'src')
-rw-r--r--src/treebuilder/in_foreign_content.c6
-rw-r--r--src/treebuilder/initial.c4
-rw-r--r--src/treebuilder/treebuilder.c1
3 files changed, 11 insertions, 0 deletions
diff --git a/src/treebuilder/in_foreign_content.c b/src/treebuilder/in_foreign_content.c
index d5c3574..4441433 100644
--- a/src/treebuilder/in_foreign_content.c
+++ b/src/treebuilder/in_foreign_content.c
@@ -142,6 +142,8 @@ static const case_changes svg_tagnames[] = {
void adjust_svg_attributes(hubbub_treebuilder *treebuilder,
hubbub_tag *tag)
{
+ UNUSED(treebuilder);
+
for (size_t i = 0; i < tag->n_attributes; i++) {
hubbub_attribute *attr = &tag->attributes[i];
@@ -171,6 +173,8 @@ void adjust_svg_tagname(hubbub_treebuilder *treebuilder,
const uint8_t *name = tag->name.ptr;
size_t len = tag->name.len;
+ UNUSED(treebuilder);
+
for (size_t i = 0; i < N_ELEMENTS(svg_tagnames); i++) {
if (hubbub_string_match(name, len,
(uint8_t *)svg_tagnames[i].attr,
@@ -194,6 +198,8 @@ void adjust_svg_tagname(hubbub_treebuilder *treebuilder,
void adjust_foreign_attributes(hubbub_treebuilder *treebuilder,
hubbub_tag *tag)
{
+ UNUSED(treebuilder);
+
for (size_t i = 0; i < tag->n_attributes; i++) {
hubbub_attribute *attr = &tag->attributes[i];
const uint8_t *name = attr->name.ptr;
diff --git a/src/treebuilder/initial.c b/src/treebuilder/initial.c
index b23f3f7..0ea071a 100644
--- a/src/treebuilder/initial.c
+++ b/src/treebuilder/initial.c
@@ -128,6 +128,8 @@ static bool lookup_full_quirks(hubbub_treebuilder *treebuilder,
const uint8_t *system_id = cdoc->system_id.ptr;
size_t system_id_len = cdoc->system_id.len;
+ UNUSED(treebuilder);
+
#define S(s) (uint8_t *) s, sizeof s
/* Check the name is "HTML" (case-insensitively) */
@@ -183,6 +185,8 @@ static bool lookup_limited_quirks(hubbub_treebuilder *treebuilder,
const uint8_t *public_id = cdoc->public_id.ptr;
size_t public_id_len = cdoc->public_id.len;
+ UNUSED(treebuilder);
+
#define S(s) (uint8_t *) s, sizeof s
if (starts_with(public_id, public_id_len,
diff --git a/src/treebuilder/treebuilder.c b/src/treebuilder/treebuilder.c
index 90c2fdd..2ddca09 100644
--- a/src/treebuilder/treebuilder.c
+++ b/src/treebuilder/treebuilder.c
@@ -961,6 +961,7 @@ element_type element_type_from_name(hubbub_treebuilder *treebuilder,
const uint8_t *name = tag_name->ptr;
size_t len = tag_name->len;
+ UNUSED(treebuilder);
/** \todo optimise this */