summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-01 22:05:08 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-11-01 22:05:08 (EDT)
commit7fd87503439ff4a00ea0a46cfb7bb91d50d1cb2e (patch)
treeb52c668da97f90f2565e0b4b5d9c1649d77b523c /src
parenta7f829a8dcfe7da13a1f71c9898df5cccff48ec3 (diff)
downloadmarquee-7fd87503439ff4a00ea0a46cfb7bb91d50d1cb2e.zip
marquee-7fd87503439ff4a00ea0a46cfb7bb91d50d1cb2e.tar.gz
marquee-7fd87503439ff4a00ea0a46cfb7bb91d50d1cb2e.tar.bz2
mq_tree_seek(): Mark as pure
And mark the static recursive function it calls as pure.
Diffstat (limited to 'src')
-rw-r--r--src/tree.c2
-rw-r--r--src/tree.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tree.c b/src/tree.c
index 64d7230..59979ee 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -247,7 +247,7 @@ mq_tree_remove_allocated(MqTree *node)
debug_print_tree("Removed node", node);
}
-static MqTree *
+static MqTree * G_GNUC_PURE
seek(MqTree *node, gint offset)
{
/* Skip forward to the containing subtree. */
diff --git a/src/tree.h b/src/tree.h
index 6c4731a..973ad07 100644
--- a/src/tree.h
+++ b/src/tree.h
@@ -78,7 +78,7 @@ mq_tree_remove_allocated(MqTree *node);
((node) ? (((MqTree *) (node))->first_child) : NULL)
MqTree *
-mq_tree_seek(MqTree *node, gint offset);
+mq_tree_seek(MqTree *node, gint offset) G_GNUC_PURE;
void
mq_tree_foreach(MqTree *node, gboolean (*cb)(MqTree *node, gpointer user_data),