mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
f3f583e9e4
commit
5d1c4a35ec
|
@ -116,7 +116,7 @@ static int lxcContainerMountFSBlock(virDomainFSDefPtr fs,
|
|||
* in a child pid namespace if container reboot support exists.
|
||||
* Otherwise, it will either succeed or return -EPERM.
|
||||
*/
|
||||
ATTRIBUTE_NORETURN static int
|
||||
G_GNUC_NORETURN static int
|
||||
lxcContainerRebootChild(void *argv)
|
||||
{
|
||||
int *cmd = argv;
|
||||
|
|
|
@ -47,7 +47,7 @@ helperVersion(const char *argv0)
|
|||
printf("%s (%s) %s\n", argv0, PACKAGE_NAME, PACKAGE_VERSION);
|
||||
}
|
||||
|
||||
ATTRIBUTE_NORETURN static void
|
||||
G_GNUC_NORETURN static void
|
||||
usage(int status)
|
||||
{
|
||||
if (status) {
|
||||
|
|
|
@ -175,7 +175,7 @@ runIO(const char *path, int fd, int oflags)
|
|||
|
||||
static const char *program_name;
|
||||
|
||||
ATTRIBUTE_NORETURN static void
|
||||
G_GNUC_NORETURN static void
|
||||
usage(int status)
|
||||
{
|
||||
if (status) {
|
||||
|
|
|
@ -1214,7 +1214,7 @@ virProcessSetupPrivateMountNS(void)
|
|||
#endif /* !defined(HAVE_SYS_MOUNT_H) || !defined(HAVE_UNSHARE) */
|
||||
|
||||
#if defined(__linux__)
|
||||
ATTRIBUTE_NORETURN static int
|
||||
G_GNUC_NORETURN static int
|
||||
virProcessDummyChild(void *argv ATTRIBUTE_UNUSED)
|
||||
{
|
||||
_exit(0);
|
||||
|
|
|
@ -46,7 +46,7 @@ virProcessTranslateStatus(int status);
|
|||
void
|
||||
virProcessAbort(pid_t pid);
|
||||
|
||||
void virProcessExitWithStatus(int status) ATTRIBUTE_NORETURN;
|
||||
void virProcessExitWithStatus(int status) G_GNUC_NORETURN;
|
||||
|
||||
int
|
||||
virProcessWait(pid_t pid, int *exitstatus, bool raw)
|
||||
|
|
|
@ -158,7 +158,7 @@ static pthread_cond_t eventThreadJobCond = PTHREAD_COND_INITIALIZER;
|
|||
static int eventThreadJobDone;
|
||||
|
||||
|
||||
ATTRIBUTE_NORETURN static void *eventThreadLoop(void *data ATTRIBUTE_UNUSED) {
|
||||
G_GNUC_NORETURN static void *eventThreadLoop(void *data ATTRIBUTE_UNUSED) {
|
||||
while (1) {
|
||||
pthread_mutex_lock(&eventThreadMutex);
|
||||
while (!eventThreadRunOnce)
|
||||
|
|
Loading…
Reference in New Issue