mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
util: add GIT_UNUSED_ARG
Add `GIT_UNUSED_ARG` which is an attribute for arguments, for compatibility with dependencies.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user