summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>2018-10-23 21:50:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-10-24 05:52:50 (GMT)
commitbbd8eb3ecbc5ea9822c88e50af653999e16bd2ee (patch)
treed5befee93fb491bb8a7667235a4f48e5e7ca02a5 /git-compat-util.h
parentc4df23f7927d8d00e666a3c8d1b3375f1dc8a3c1 (diff)
downloadgit-bbd8eb3ecbc5ea9822c88e50af653999e16bd2ee.zip
git-bbd8eb3ecbc5ea9822c88e50af653999e16bd2ee.tar.gz
git-bbd8eb3ecbc5ea9822c88e50af653999e16bd2ee.tar.bz2
commit-slabs: move MAYBE_UNUSED out
after 36da893114 ("config.mak.dev: enable -Wunused-function", 2018-10-18) it is expected to be used to prevent -Wunused-function warnings for code that was macro generated Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 48c9555..8121b73 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -408,6 +408,8 @@ static inline char *git_find_last_dir_sep(const char *path)
#define LAST_ARG_MUST_BE_NULL
#endif
+#define MAYBE_UNUSED __attribute__((__unused__))
+
#include "compat/bswap.h"
#include "wildmatch.h"