From 9eadeef96ff35f12f2a44085e84d42d93c53c026 Mon Sep 17 00:00:00 2001 From: katherine Date: Tue, 10 Dec 2019 23:23:24 -0700 Subject: add inline hints to avoid wunused warnings --- simple-xdg-bdirs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simple-xdg-bdirs.h b/simple-xdg-bdirs.h index 98a57b5..e9aafc8 100644 --- a/simple-xdg-bdirs.h +++ b/simple-xdg-bdirs.h @@ -383,7 +383,7 @@ sub_simple_xdg_bdirs_join(const char *s1, const char *s2) * EOVERFLOW: extremely-large string encountered (unlikely) * ENOMEM: malloc err */ -static char* +static inline char* simple_xdg_bdirs_fullpath_read(const char *rel_path, char **read_dirs) { char **cur, *path; @@ -419,7 +419,7 @@ simple_xdg_bdirs_fullpath_read(const char *rel_path, char **read_dirs) * EOVERFLOW: extremely-large string encountered (unlikely) * ENOMEM: malloc err */ -static char* +static inline char* simple_xdg_bdirs_fullpath_write(const char *rel_path, char *write_dir) { if (rel_path == NULL && write_dir == NULL) { -- cgit v1.2.3