summaryrefslogtreecommitdiff
path: root/src/win32/posix.h
diff options
context:
space:
mode:
authorRussell Belfer <arrbee@arrbee.com>2012-01-24 14:06:42 -0800
committerRussell Belfer <arrbee@arrbee.com>2012-03-02 15:49:28 -0800
commit2705576bfa90675433be49a4141cfdd867e380cc (patch)
treeaf4f390de70585a426df45b7e92a141b9d08227e /src/win32/posix.h
parent3a5ad90a0de4408c2754763fe1ced0da984bae6e (diff)
downloadlibgit2-2705576bfa90675433be49a4141cfdd867e380cc.tar.gz
Simplify GIT_UNUSED macros
Since casting to void works to eliminate errors with unused parameters on all platforms, avoid the various special cases. Over time, it will make sense to eliminate the GIT_UNUSED macro completely and just have GIT_UNUSED_ARG.
Diffstat (limited to 'src/win32/posix.h')
-rw-r--r--src/win32/posix.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/win32/posix.h b/src/win32/posix.h
index 8f603657b..f4c1c121e 100644
--- a/src/win32/posix.h
+++ b/src/win32/posix.h
@@ -13,8 +13,8 @@
GIT_INLINE(int) p_link(const char *GIT_UNUSED(old), const char *GIT_UNUSED(new))
{
- GIT_UNUSED_ARG(old)
- GIT_UNUSED_ARG(new)
+ GIT_UNUSED_ARG(old);
+ GIT_UNUSED_ARG(new);
errno = ENOSYS;
return -1;
}
@@ -24,7 +24,7 @@ GIT_INLINE(int) p_mkdir(const char *path, mode_t GIT_UNUSED(mode))
wchar_t* buf = gitwin_to_utf16(path);
int ret = _wmkdir(buf);
- GIT_UNUSED_ARG(mode)
+ GIT_UNUSED_ARG(mode);
git__free(buf);
return ret;