From: Florian Weimer <fweimer@redhat.com>
To: bug-gnulib@gnu.org
Subject: [PATCH] m4: Pointer types for pthread_spinlock_init, pthread_mutex_timedlock
Date: Mon, 12 Feb 2024 10:28:22 +0100 [thread overview]
Message-ID: <87il2uc9qh.fsf@oldenburg3.str.redhat.com> (raw)
Without this change, these probes fail unconditionally with GCC 14
because they do not use the correct argument types.
---
m4/pthread-spin.m4 | 2 +-
m4/pthread_mutex_timedlock.m4 | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/m4/pthread-spin.m4 b/m4/pthread-spin.m4
index daf9462b52..0b668a15fd 100644
--- a/m4/pthread-spin.m4
+++ b/m4/pthread-spin.m4
@@ -42,7 +42,7 @@ AC_DEFUN([gl_PTHREAD_SPIN],
[AC_LANG_PROGRAM(
[[#include <pthread.h>
]],
- [[pthread_spinlock_t *lock;
+ [[pthread_spinlock_t lock;
return pthread_spin_init (&lock, 0);
]])
],
diff --git a/m4/pthread_mutex_timedlock.m4 b/m4/pthread_mutex_timedlock.m4
index 1dc4c8c682..824dab9e24 100644
--- a/m4/pthread_mutex_timedlock.m4
+++ b/m4/pthread_mutex_timedlock.m4
@@ -26,7 +26,7 @@ AC_DEFUN([gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK],
[[#include <pthread.h>
#include <time.h>
]],
- [[pthread_mutex_t *lock;
+ [[pthread_mutex_t lock;
return pthread_mutex_timedlock (&lock, (struct timespec *) 0);
]])
],
base-commit: 8c7736e4898fb0c177f97b396bbc782a8daa409a
next reply other threads:[~2024-02-12 9:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-12 9:28 Florian Weimer [this message]
2024-02-12 11:20 ` [PATCH] m4: Pointer types for pthread_spinlock_init, pthread_mutex_timedlock Bruno Haible
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87il2uc9qh.fsf@oldenburg3.str.redhat.com \
--to=fweimer@redhat.com \
--cc=bug-gnulib@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).