On 06/02/07, Alexandre Oliva <[EMAIL PROTECTED]> wrote:
On Jan 29, 2007, "Manuel López-Ibáñez" <[EMAIL PROTECTED]> wrote:

> * You can add a return 0 or an exit(1) at the end of the function or
> in a default label. Since in your case the code is unreachable, the
> optimiser may remove it or it will never be executed.

But this would generate additional code for no useful purpose.
See Ralf Baechle's posting with Subject: False 'noreturn' function
does return warnings.


GCC already generates additional code even if no explicit 'default' or
'return' is added. :-/ See the original PR c++/28236.

Cheers,

Manuel.

Reply via email to