Hi
Is it possible to force gcc (or xlc) compiler to emit compilation
warning or compilation error for such code:
void fooA() throw (MyException)
{
...
throw MyException();
...
}
void fooB() throw()
{
fooB();
}
I would like to be warned that in function fooB:
* there is no appropriate catch block to catch MyException from fooA
.... or ...
* fooB should be declared as: void fooB() throw(MyExcepti on)
Any idea to force the compiler to emit such warnings?
Kind regards,
Adam
Is it possible to force gcc (or xlc) compiler to emit compilation
warning or compilation error for such code:
void fooA() throw (MyException)
{
...
throw MyException();
...
}
void fooB() throw()
{
fooB();
}
I would like to be warned that in function fooB:
* there is no appropriate catch block to catch MyException from fooA
.... or ...
* fooB should be declared as: void fooB() throw(MyExcepti on)
Any idea to force the compiler to emit such warnings?
Kind regards,
Adam
Comment