Skip to content

Commit a821455

Browse files
committed
util: add GIT_UNUSED_ARG
Add `GIT_UNUSED_ARG` which is an attribute for arguments, for compatibility with dependencies.
1 parent 2bbcdee commit a821455

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util/cc-compat.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@
4343
__typeof__(x) _unused __attribute__((unused)); \
4444
_unused = (x); \
4545
} while (0)
46+
# define GIT_UNUSED_ARG __attribute__((unused))
4647
#else
4748
# define GIT_UNUSED(x) ((void)(x))
49+
# define GIT_UNUSED_ARG
4850
#endif
4951

5052
/* Define the printf format specifier to use for size_t output */

0 commit comments

Comments
 (0)