From 9a439e5cca9c32964be90140261c5ed87196927e Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Mon, 4 Nov 2024 13:13:21 +0100 Subject: [PATCH] Compiler warning: unused label on non-FreeBSD platforms Used by a goto to jump over the POST mutex lock userreq, but only on FreeBSD. --- helgrind/hg_intercepts.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helgrind/hg_intercepts.c b/helgrind/hg_intercepts.c index 3c6b127ac..43afd89f4 100644 --- a/helgrind/hg_intercepts.c +++ b/helgrind/hg_intercepts.c @@ -1003,7 +1003,9 @@ static int mutex_lock_WRK(pthread_mutex_t *mutex) DO_CREQ_v_WW(_VG_USERREQ__HG_PTHREAD_MUTEX_LOCK_POST, pthread_mutex_t *, mutex, long, (ret == 0) ? True : False); +#if defined(VGO_freebsd) HG_MUTEX_LOCK_OUT: +#endif if (ret != 0) { DO_PthAPIerror( "pthread_mutex_lock", ret ); -- 2.47.2