compiler warnings for unconditional recursive calls
- From: cody <deutronium@xxxxxx>
- Date: Fri, 08 Jun 2007 00:52:57 +0200
Why doesn't the compiler give me any warning if it encounters code like the following:
void foo()
{
// some code here
// foo() ist not nested in a pre-condition loop, some if- or else- // block and no return statement appears before it.
foo();
}
The compiler should recognize something like that, shouldn't it?
.
- Follow-Ups:
- Re: compiler warnings for unconditional recursive calls
- From: Tim Rowe
- Re: compiler warnings for unconditional recursive calls
- From: Barfy the Wonder Camel
- Re: compiler warnings for unconditional recursive calls
- From: Jon Skeet [C# MVP]
- Re: compiler warnings for unconditional recursive calls
- Prev by Date: Re: Splitting a string with Regex and keep the separator
- Next by Date: Re: domain name availability check
- Previous by thread: Looking for Tips/Writeup on overall approach to Exception Processing
- Next by thread: Re: compiler warnings for unconditional recursive calls
- Index(es):
Relevant Pages
|