Code: Select all
/*----- unit1.h -----*/
inline bool Foo();
/*----- unit1.cpp -----*/
bool TForm1::Foo()
{
int b;
int i;
if (b == 7) i = 1;
else if (b == 8) i = 2;
else return true;
return false;
}
If you remove the inline keyword, the warning disappears. It also disappears if line 13 is replaced with this code:
Code: Select all
...
else i = 3;
if (i == 3) return true;
...