Several lines not executed in a function of MacabDatabaseMetaData.cxx

Lionel Elie Mamane lionel at mamane.lu
Sun Feb 5 03:52:02 PST 2012


On Sun, Feb 05, 2012 at 01:04:32AM -0800, julien2412 wrote:

> Cppcheck reports this :
> core/connectivity/source/drivers/macab/MacabDatabaseMetaData.cxx
> 1044	unreachableCode	style	Statements following return, break, continue,
> goto or throw will never be executed.

> Here I hesitate to just remove all the lines after the
> return. Perhaps the return is wrong.

Yeah, the code *after* the return looks quite sane, actually. I'd
remove the first return.

-- 
Lionel


More information about the LibreOffice mailing list