Commit a821455e by Edward Thomson

util: add GIT_UNUSED_ARG

Add `GIT_UNUSED_ARG` which is an attribute for arguments, for
compatibility with dependencies.
parent 2bbcdee6
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment