diff options
author | Thomas Huth | 2020-07-16 07:12:22 +0200 |
---|---|---|
committer | Thomas Huth | 2020-07-17 10:44:23 +0200 |
commit | 12a9b8d8240aaddf14774b9fb03af5e2e0b9f60a (patch) | |
tree | 3e4bfde6052361c8a80accafd9ae7c4acea4f55f /configure | |
parent | fuzz: Expect the cmdline in a freeable GString (diff) | |
download | qemu-12a9b8d8240aaddf14774b9fb03af5e2e0b9f60a.tar.gz qemu-12a9b8d8240aaddf14774b9fb03af5e2e0b9f60a.tar.xz qemu-12a9b8d8240aaddf14774b9fb03af5e2e0b9f60a.zip |
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>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4198,7 +4198,7 @@ pthread_setname_np_wo_tid=no cat > $TMPC << EOF #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) { pthread_t thread; |