- remove superflous semicolons; - avoid dead code warnings; - avoid function redeclaration with an added 'dllexport' attribute.
Signed-off-by: Antonin Décimo <anto...@tarides.com> --- mingw-w64-libraries/winpthreads/src/sem.c | 4 ++-- mingw-w64-libraries/winpthreads/src/thread.c | 5 +++-- mingw-w64-libraries/winpthreads/src/thread.h | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/mingw-w64-libraries/winpthreads/src/sem.c b/mingw-w64-libraries/winpthreads/src/sem.c index 81fa8f8e6..d79c88f2e 100644 --- a/mingw-w64-libraries/winpthreads/src/sem.c +++ b/mingw-w64-libraries/winpthreads/src/sem.c @@ -254,7 +254,7 @@ sem_timedwait (sem_t *sem, const struct timespec *t) int sem_post (sem_t *sem) { - _sem_t *sv;; + _sem_t *sv; if (sem_std_enter (sem, &sv, 0) != 0) return -1; @@ -280,7 +280,7 @@ int sem_post_multiple (sem_t *sem, int count) { int waiters_count; - _sem_t *sv;; + _sem_t *sv; if (count <= 0) return sem_result (EINVAL); diff --git a/mingw-w64-libraries/winpthreads/src/thread.c b/mingw-w64-libraries/winpthreads/src/thread.c index 9a2c717ff..82ea990fd 100644 --- a/mingw-w64-libraries/winpthreads/src/thread.c +++ b/mingw-w64-libraries/winpthreads/src/thread.c @@ -368,10 +368,9 @@ pop_pthread_mem (void) static void free_pthread_mem (void) { +#if 0 _pthread_v *t; - if (1) - return; pthread_mutex_lock (&mtx_pthr_locked); t = pthr_root; while (t != NULL) @@ -401,6 +400,8 @@ free_pthread_mem (void) pthr_root = t; } pthread_mutex_unlock (&mtx_pthr_locked); +#endif + return; } static void diff --git a/mingw-w64-libraries/winpthreads/src/thread.h b/mingw-w64-libraries/winpthreads/src/thread.h index 729c5bc68..5b88226e9 100644 --- a/mingw-w64-libraries/winpthreads/src/thread.h +++ b/mingw-w64-libraries/winpthreads/src/thread.h @@ -74,6 +74,6 @@ void thread_print_set(int state); void thread_print(volatile pthread_t t, char *txt); #endif int __pthread_shallcancel(void); -struct _pthread_v *__pth_gpointer_locked (pthread_t id); +struct _pthread_v *WINPTHREAD_API __pth_gpointer_locked (pthread_t id); #endif -- 2.43.0 _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public