diff options
author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2010-01-12 16:39:25 +0000 |
---|---|---|
committer | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2010-01-20 20:22:10 +0000 |
commit | 73dcf2876fecab9adba9ec9bc148ccbab431af12 (patch) | |
tree | 904c0ac12b23548de524adae712241b423d765a3 /src/cc-compat.h | |
parent | e8a952561c4e59ca308d1973de46fc32ad91a022 (diff) | |
download | libgit2-73dcf2876fecab9adba9ec9bc148ccbab431af12.tar.gz |
msvc: Fix some "unreferenced formal parameter" warnings
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Diffstat (limited to 'src/cc-compat.h')
-rw-r--r-- | src/cc-compat.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cc-compat.h b/src/cc-compat.h index aefe66d19..5071d5322 100644 --- a/src/cc-compat.h +++ b/src/cc-compat.h @@ -40,6 +40,12 @@ # endif #endif +#if defined(_MSC_VER) +#define GIT_UNUSED_ARG(x) ((void)(x)); /* note trailing ; */ +#else +#define GIT_UNUSED_ARG(x) +#endif + /* * Does our compiler/platform support the C99 <inttypes.h> and * <stdint.h> header files. (C99 requires that <inttypes.h> |