From e2c5c4ec0afad6535e45acd5bc69ef79ee7d5bf4 Mon Sep 17 00:00:00 2001 From: Petr Mladek Date: Wed, 30 Mar 2011 19:38:30 +0200 Subject: warning-return-values-registry.diff: avoid warning (i#58979) the code was correct; it was wrongly detected by some gcc versions; the warning was considered as an error in openSUSE build service; the change does not cause any harm; --- registry/source/regimpl.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'registry') diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx index 0976c23555c7..77cce3bc1589 100644 --- a/registry/source/regimpl.cxx +++ b/registry/source/regimpl.cxx @@ -519,6 +519,10 @@ RegError ORegistry::initRegistry(const OUString& regName, RegAccessMode accessMo } else return REG_INVALID_REGISTRY; } + + // this line is never accessed + // just workaround to avoid warning: control reaches end of non-void function + return REG_INVALID_REGISTRY; } -- cgit