Commit 1a597307 authored by Max Kellermann's avatar Max Kellermann

update_walk: add "pure" attributes

parent 20029e7c
...@@ -519,6 +519,7 @@ update_directory_child(struct directory *directory, ...@@ -519,6 +519,7 @@ update_directory_child(struct directory *directory,
} }
/* we don't look at "." / ".." nor files with newlines in their name */ /* we don't look at "." / ".." nor files with newlines in their name */
G_GNUC_PURE
static bool skip_path(const char *path) static bool skip_path(const char *path)
{ {
return (path[0] == '.' && path[1] == 0) || return (path[0] == '.' && path[1] == 0) ||
...@@ -526,6 +527,7 @@ static bool skip_path(const char *path) ...@@ -526,6 +527,7 @@ static bool skip_path(const char *path)
strchr(path, '\n') != NULL; strchr(path, '\n') != NULL;
} }
G_GNUC_PURE
static bool static bool
skip_symlink(const struct directory *directory, const char *utf8_name) skip_symlink(const struct directory *directory, const char *utf8_name)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment