[Libreoffice-commits] .: registry/source
Petr Mladek
pmladek at kemper.freedesktop.org
Wed Mar 30 10:39:09 PDT 2011
registry/source/regimpl.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 9e692df830d521efdc0a5540425de50cce1bbaf3
Author: Petr Mladek <pmladek at suse.cz>
Date: Wed Mar 30 19:38:30 2011 +0200
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;
diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx
index c210d7b..fdb0caa 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;
}
More information about the Libreoffice-commits
mailing list