This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Statement with no effect warning
On Tue, 2003-12-16 at 13:59, Geoff Keating wrote:
> Can we fix this? It would be better if it was impossible to write
> code that will build on a compiler with checking enabled but won't
> build on a compiler with checking disabled.
>
Contrived, but shows one recent example:
foo(int a, int n)
{
int m = a;
#if defined ENABLE_CHECKING
if (m == 0)
abort ();
#endif
return n / a;
}