summaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2011-03-30 19:38:30 +0200
committerPetr Mladek <pmladek@suse.cz>2011-03-30 19:38:30 +0200
commite2c5c4ec0afad6535e45acd5bc69ef79ee7d5bf4 (patch)
tree73da7ec4342334954651be56186a6b2ba6b45d08 /registry
parentf158ee729ca794f52f4a0d28b1c2420e2a1f6ede (diff)
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;
Diffstat (limited to 'registry')
-rw-r--r--registry/source/regimpl.cxx4
1 files changed, 4 insertions, 0 deletions
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;
}