[Mono-devel-list] Warning CS0162?

Robert Shade rshade at dvsconsulting.com
Thu May 13 06:52:13 EDT 2004


Look here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cscomp/html/vcerrCompilerErrorSC0162.asp

Another example would be

void SomeFunc()
{
	return;

	DoOtherStuff(); // This is unreachable
}

rob

On Wed, 2004-05-12 at 21:48, Michi Henning wrote:
> Hi,
> 
> I'm getting the following when building a DLL:
> 
> 	Internal() warning CS0162: Unreachable code detected
> 
> I tried looking up CS0162 in the doc, but it doesn't appear to
> be documented. Is there any way to find out what code is considered
> unreachable and why? Any way to get rid of the warning?
> 
> Thanks,
> 
> Michi.
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list




More information about the Mono-devel-list mailing list