提交 5d1c4a35 编写于 作者: J Ján Tomko

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: NJán Tomko <jtomko@redhat.com>
Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
上级 f3f583e9
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册