Skip to content

Commit 12a9b8d

Browse files
committed
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: 479a574 ("util: Implement debug-threads for macOS") Message-Id: <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Signed-off-by: Thomas Huth <[email protected]>
1 parent f5ec79f commit 12a9b8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4198,7 +4198,7 @@ pthread_setname_np_wo_tid=no
41984198
cat > $TMPC << EOF
41994199
#include <pthread.h>
42004200
4201-
static void *f(void *p) { pthread_setname_np("QEMU"); }
4201+
static void *f(void *p) { pthread_setname_np("QEMU"); return NULL; }
42024202
int main(void)
42034203
{
42044204
pthread_t thread;

0 commit comments

Comments
 (0)