1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 03:27:58 +03:00

Hotfix usage of __builtin_unreachable()

It's quite new feature which is not supported by older compilers.
So until some better macros are introduced into LVM code - hotfix current
compilation problems and compile this code only for __clang__ defining compilers.
This commit is contained in:
Zdenek Kabelac 2010-10-26 09:57:03 +00:00
parent 419d5219cb
commit 2ecd717dc4

View File

@ -491,7 +491,9 @@ int main(int argc, char *argv[])
DEBUGLOG("Can't initialise cluster interface\n");
log_error("Can't initialise cluster interface\n");
child_init_signal(DFAIL_CLUSTER_IF);
#ifdef __clang__
__builtin_unreachable();
#endif
}
DEBUGLOG("Cluster ready, doing some more initialisation\n");
@ -508,7 +510,9 @@ int main(int argc, char *argv[])
newfd = malloc(sizeof(struct local_client));
if (!newfd) {
child_init_signal(DFAIL_MALLOC);
#ifdef __clang__
__builtin_unreachable();
#endif
}
newfd->fd = local_sock;