LVM2/daemons/clvmd clvmd.c

Alasdair G Kergon <[email protected]>
Newsgroups dev.linux.lists.lvm-devel
Message-ID <[email protected]>
On Tue, Oct 26, 2010 at 09:57:04AM -0000, zkabelac at sourceware.org wrote:
> +#ifdef __clang__
>  		__builtin_unreachable();
> +#endif

Please do not scatter #ifdefs like that through the code.
If the standard /* NOTREACHED */ really doesn't work, then hide the
ifdef in a header file and use a #define to make it available precisely
where the compiler supports it, defining it to something empty
elsewhere.

Alasdair
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.