avoid warning for "Empty compound statement"

Hi,

Some times we need to keep compound statement empty but it gives warning. To avoid same is any soultion available?

For ex. I have written one method with below code.

try
{
this.createReturnLine();

this.openForm();
}
catch (Exception::Error)
{

}

Now I am compiing same then it will give me and warning = “Empty compound statement.”

How to avoid the same?

Call exceptionTextFallThrough() in the catch block. It does nothing, it’s there just to say that you’re intentionally not doing anything there (and to satisfy compiler).

Thanks for your reply! This works for me.