diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-01 22:05:08 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-01 22:05:08 (EDT) |
commit | 7fd87503439ff4a00ea0a46cfb7bb91d50d1cb2e (patch) | |
tree | b52c668da97f90f2565e0b4b5d9c1649d77b523c /src | |
parent | a7f829a8dcfe7da13a1f71c9898df5cccff48ec3 (diff) | |
download | marquee-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.c | 2 | ||||
-rw-r--r-- | src/tree.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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. */ @@ -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), |