summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-10-30 06:43:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-10-30 06:43:48 (GMT)
commitd1622fdbdd83831983e8b99250792e5fca7b9159 (patch)
treec3beb5f30ba119cfa361e222cdc1c8eb26b96509 /git-compat-util.h
parentda3e0752cdfe7ae535b4e740f162f1e4926d4201 (diff)
parentd99ea5f9c5feb4f17f39a2e438795f934b32c739 (diff)
downloadgit-d1622fdbdd83831983e8b99250792e5fca7b9159.zip
git-d1622fdbdd83831983e8b99250792e5fca7b9159.tar.gz
git-d1622fdbdd83831983e8b99250792e5fca7b9159.tar.bz2
Merge branch 'cb/khash-maybe-unused-function'
Build fix. * cb/khash-maybe-unused-function: khash: silence -Wunused-function for delta-islands commit-slabs: move MAYBE_UNUSED out
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 95cfcc1..96a3f86 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -412,6 +412,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"