summaryrefslogtreecommitdiff
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
commit9e692df830d521efdc0a5540425de50cce1bbaf3 (patch)
treefa736b03cd51a855adef7a83431631f27f26bb9e
parent1fff5597b85d207b0bb51753c259c2b89d1528ed (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;
-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 c210d7b33..fdb0caa97 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;
}