diff options
author | Philippe Mathieu-Daudé | 2020-06-01 11:38:08 +0200 |
---|---|---|
committer | Paolo Bonzini | 2020-06-10 18:10:49 +0200 |
commit | c08790f48b2f41ef26d491fd4d460b74c06cefe4 (patch) | |
tree | efd7f9bfb9dfb65f37f3ce6ff67d17ef5dec0035 /include/qemu | |
parent | memory: Make 'info mtree' not display disabled regions by default (diff) | |
download | qemu-c08790f48b2f41ef26d491fd4d460b74c06cefe4.tar.gz qemu-c08790f48b2f41ef26d491fd4d460b74c06cefe4.tar.xz qemu-c08790f48b2f41ef26d491fd4d460b74c06cefe4.zip |
qemu/thread: Mark qemu_thread_exit() with 'noreturn' attribute
After upgrading to Ubuntu 20.04 LTS, GCC 9.3 complains:
util/qemu-thread-posix.c: In function ‘qemu_thread_exit’:
util/qemu-thread-posix.c:577:6: error: function might be candidate for attribute ‘noreturn’ [-Werror=suggest-attribute=noreturn]
577 | void qemu_thread_exit(void *retval)
| ^~~~~~~~~~~~~~~~
Fix by marking the qemu_thread_exit function with QEMU_NORETURN
to set the 'noreturn' attribute.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/qemu')
-rw-r--r-- | include/qemu/thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/qemu/thread.h b/include/qemu/thread.h index d22848138e..06c058fb58 100644 --- a/include/qemu/thread.h +++ b/include/qemu/thread.h @@ -177,7 +177,7 @@ void qemu_thread_create(QemuThread *thread, const char *name, void *qemu_thread_join(QemuThread *thread); void qemu_thread_get_self(QemuThread *thread); bool qemu_thread_is_self(QemuThread *thread); -void qemu_thread_exit(void *retval); +void qemu_thread_exit(void *retval) QEMU_NORETURN; void qemu_thread_naming(bool enable); struct Notifier; |