mirror of
https://github.com/qemu/qemu.git
synced 2025-08-09 10:25:06 +00:00
configure: Fix for running with --enable-werror on macOS
The configure script currently refuses to succeed when run on macOS
with --enable-werror:
ERROR: configure test passed without -Werror but failed with -Werror.
The information in config.log indicates:
config-temp/qemu-conf.c:3:55: error: control reaches end of non-void
function [-Werror,-Wreturn-type]
static void *f(void *p) { pthread_setname_np("QEMU"); }
^
And indeed, the return statement is missing here.
Fixes: 479a57475e
("util: Implement debug-threads for macOS")
Message-Id: <20200716055655.24507-1-thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
f5ec79f5e0
commit
12a9b8d824
2
configure
vendored
2
configure
vendored
@ -4198,7 +4198,7 @@ pthread_setname_np_wo_tid=no
|
|||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
static void *f(void *p) { pthread_setname_np("QEMU"); }
|
static void *f(void *p) { pthread_setname_np("QEMU"); return NULL; }
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
pthread_t thread;
|
pthread_t thread;
|
||||||
|
Loading…
Reference in New Issue
Block a user