[Bug middle-end/4210] should not warning with dead code
joseph at codesourcery dot com
gcc-bugzilla@gcc.gnu.org
Wed Mar 1 23:22:00 GMT 2006
------- Comment #15 from joseph at codesourcery dot com 2006-03-01 23:22 -------
Subject: Re: should not warning with dead code
On Wed, 1 Mar 2006, bangerth at dealii dot org wrote:
> c) doesn't work with code where the code guarded by the if(0) is more
> than a single statement.
It does; I've used it to eliminate all these warnings in glibc's soft-fp
code. Use statement expressions, i.e. surround the whole if body with ({
}).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210
More information about the Gcc-bugs
mailing list