]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Compiler warning: unused label on non-FreeBSD platforms
authorPaul Floyd <pjfloyd@wanadoo.fr>
Mon, 4 Nov 2024 12:13:21 +0000 (13:13 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Mon, 4 Nov 2024 12:13:21 +0000 (13:13 +0100)
Used by a goto to jump over the POST mutex lock userreq,
but only on FreeBSD.

helgrind/hg_intercepts.c

index 3c6b127ac9ef4bfca9307c41d6bcfacd06cfcc40..43afd89f47c0d84c9c0aa54d78a4f0c73dec1d6c 100644 (file)
@@ -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 );