diff options
-rw-r--r-- | src/util/cc-compat.h | 2 |
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 */ |