diff options
Diffstat (limited to 'src/win32')
| -rw-r--r-- | src/win32/posix.h | 10 | ||||
| -rw-r--r-- | src/win32/pthread.c | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/win32/posix.h b/src/win32/posix.h index f4c1c121e..60adc9666 100644 --- a/src/win32/posix.h +++ b/src/win32/posix.h @@ -11,20 +11,20 @@ #include "fnmatch.h" #include "utf-conv.h" -GIT_INLINE(int) p_link(const char *GIT_UNUSED(old), const char *GIT_UNUSED(new)) +GIT_INLINE(int) p_link(const char *old, const char *new) { - GIT_UNUSED_ARG(old); - GIT_UNUSED_ARG(new); + GIT_UNUSED(old); + GIT_UNUSED(new); errno = ENOSYS; return -1; } -GIT_INLINE(int) p_mkdir(const char *path, mode_t GIT_UNUSED(mode)) +GIT_INLINE(int) p_mkdir(const char *path, mode_t mode) { wchar_t* buf = gitwin_to_utf16(path); int ret = _wmkdir(buf); - GIT_UNUSED_ARG(mode); + GIT_UNUSED(mode); git__free(buf); return ret; diff --git a/src/win32/pthread.c b/src/win32/pthread.c index cbce639c0..3db536848 100644 --- a/src/win32/pthread.c +++ b/src/win32/pthread.c @@ -8,10 +8,10 @@ #include "pthread.h" int pthread_create(pthread_t *GIT_RESTRICT thread, - const pthread_attr_t *GIT_RESTRICT GIT_UNUSED(attr), + const pthread_attr_t *GIT_RESTRICT attr, void *(*start_routine)(void*), void *GIT_RESTRICT arg) { - GIT_UNUSED_ARG(attr); + GIT_UNUSED(attr); *thread = (pthread_t) CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)start_routine, arg, 0, NULL); return *thread ? GIT_SUCCESS : git__throw(GIT_EOSERR, "Failed to create pthread"); } @@ -26,9 +26,9 @@ int pthread_join(pthread_t thread, void **value_ptr) } int pthread_mutex_init(pthread_mutex_t *GIT_RESTRICT mutex, - const pthread_mutexattr_t *GIT_RESTRICT GIT_UNUSED(mutexattr)) + const pthread_mutexattr_t *GIT_RESTRICT mutexattr) { - GIT_UNUSED_ARG(mutexattr); + GIT_UNUSED(mutexattr); InitializeCriticalSection(mutex); return 0; } |
