Hi Pelle:
Compiling with Pelle's C Version 5 beta 4, the following snippet generates the following warnings
snip.c(17): warning #2154: Unreachable code.
snip.c(25): warning #2154: Unreachable code.
Thank you
Robert Wishlaw
#include <stdio.h>
#include <string.h>
static char a[6];
int main(int argc, char *argv[])
{
strcpy(a,"Hello");
while(1)
{
if(strcmp(a,"Hello")==0)
{
printf("%s\n","Hi there!");
}
break;
}
while(1)
{
if(strcmp(a,"Hello")==0)
{
printf("%s\n","Hi there again from Unreachable code land!");
}
break;
}
printf("%s\n","Hi there yet again from Unreachable code land!");
return 0; // End of main program
}