1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-11 09:17:52 +03:00

use G_GNUC_NORETURN instead of ATTRIBUTE_NORETURN

Remove all usage of ATTRIBUTE_NORETURN in favor of GLib's
G_GNUC_NORETURN.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Ján Tomko 2019-10-14 14:07:39 +02:00
parent f3f583e9e4
commit 5d1c4a35ec
6 changed files with 6 additions and 6 deletions

View File

@ -116,7 +116,7 @@ static int lxcContainerMountFSBlock(virDomainFSDefPtr fs,
* in a child pid namespace if container reboot support exists. * in a child pid namespace if container reboot support exists.
* Otherwise, it will either succeed or return -EPERM. * Otherwise, it will either succeed or return -EPERM.
*/ */
ATTRIBUTE_NORETURN static int G_GNUC_NORETURN static int
lxcContainerRebootChild(void *argv) lxcContainerRebootChild(void *argv)
{ {
int *cmd = argv; int *cmd = argv;

View File

@ -47,7 +47,7 @@ helperVersion(const char *argv0)
printf("%s (%s) %s\n", argv0, PACKAGE_NAME, PACKAGE_VERSION); printf("%s (%s) %s\n", argv0, PACKAGE_NAME, PACKAGE_VERSION);
} }
ATTRIBUTE_NORETURN static void G_GNUC_NORETURN static void
usage(int status) usage(int status)
{ {
if (status) { if (status) {

View File

@ -175,7 +175,7 @@ runIO(const char *path, int fd, int oflags)
static const char *program_name; static const char *program_name;
ATTRIBUTE_NORETURN static void G_GNUC_NORETURN static void
usage(int status) usage(int status)
{ {
if (status) { if (status) {

View File

@ -1214,7 +1214,7 @@ virProcessSetupPrivateMountNS(void)
#endif /* !defined(HAVE_SYS_MOUNT_H) || !defined(HAVE_UNSHARE) */ #endif /* !defined(HAVE_SYS_MOUNT_H) || !defined(HAVE_UNSHARE) */
#if defined(__linux__) #if defined(__linux__)
ATTRIBUTE_NORETURN static int G_GNUC_NORETURN static int
virProcessDummyChild(void *argv ATTRIBUTE_UNUSED) virProcessDummyChild(void *argv ATTRIBUTE_UNUSED)
{ {
_exit(0); _exit(0);

View File

@ -46,7 +46,7 @@ virProcessTranslateStatus(int status);
void void
virProcessAbort(pid_t pid); virProcessAbort(pid_t pid);
void virProcessExitWithStatus(int status) ATTRIBUTE_NORETURN; void virProcessExitWithStatus(int status) G_GNUC_NORETURN;
int int
virProcessWait(pid_t pid, int *exitstatus, bool raw) virProcessWait(pid_t pid, int *exitstatus, bool raw)

View File

@ -158,7 +158,7 @@ static pthread_cond_t eventThreadJobCond = PTHREAD_COND_INITIALIZER;
static int eventThreadJobDone; static int eventThreadJobDone;
ATTRIBUTE_NORETURN static void *eventThreadLoop(void *data ATTRIBUTE_UNUSED) { G_GNUC_NORETURN static void *eventThreadLoop(void *data ATTRIBUTE_UNUSED) {
while (1) { while (1) {
pthread_mutex_lock(&eventThreadMutex); pthread_mutex_lock(&eventThreadMutex);
while (!eventThreadRunOnce) while (!eventThreadRunOnce)