summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-05-13 13:42:24 +0100
committerGitHub <noreply@github.com>2023-05-13 13:42:24 +0100
commitc87a3f8f6c698e62bc95f801755db8c4281bebe7 (patch)
tree72edc703c21bde40a3fb3104c66eea408e25fb3c /src
parent213d35ea6d69598693b7f4b5b737aa98c91ba98e (diff)
parent027630ddd42e5ab4f4f5a221f38a3fd5bda4e3d4 (diff)
downloadlibgit2-c87a3f8f6c698e62bc95f801755db8c4281bebe7.tar.gz
Merge pull request #6561 from libgit2/ethomson/xdiff
Update xdiff to git 2.40.1's version
Diffstat (limited to 'src')
-rw-r--r--src/util/cc-compat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/cc-compat.h b/src/util/cc-compat.h
index a0971e86c..ede6e9aa9 100644
--- a/src/util/cc-compat.h
+++ b/src/util/cc-compat.h
@@ -43,8 +43,10 @@
__typeof__(x) _unused __attribute__((unused)); \
_unused = (x); \
} while (0)
+# define GIT_UNUSED_ARG __attribute__((unused))
#else
# define GIT_UNUSED(x) ((void)(x))
+# define GIT_UNUSED_ARG
#endif
/* Define the printf format specifier to use for size_t output */