summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/DescriptorBuilder.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2018-11-01 17:14:06 -0400
committerBernard Normier <bernard@zeroc.com>2018-11-01 17:14:06 -0400
commit3a763985c52246b1b804cdd7ee7bd49a82e76bd3 (patch)
treee35b1b0bdf6715ed784d0c86482355528bee81ee /cpp/src/IceGrid/DescriptorBuilder.cpp
parentVisual Studio and msbuild updates (diff)
downloadice-3a763985c52246b1b804cdd7ee7bd49a82e76bd3.tar.bz2
ice-3a763985c52246b1b804cdd7ee7bd49a82e76bd3.tar.xz
ice-3a763985c52246b1b804cdd7ee7bd49a82e76bd3.zip
Increase Visual Studio warning level to Level4
Fixes #223.
Diffstat (limited to 'cpp/src/IceGrid/DescriptorBuilder.cpp')
-rw-r--r--cpp/src/IceGrid/DescriptorBuilder.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/cpp/src/IceGrid/DescriptorBuilder.cpp b/cpp/src/IceGrid/DescriptorBuilder.cpp
index 9ffc5819294..79fe234bc50 100644
--- a/cpp/src/IceGrid/DescriptorBuilder.cpp
+++ b/cpp/src/IceGrid/DescriptorBuilder.cpp
@@ -105,7 +105,6 @@ XmlAttributesHelper::asBool(const string& name) const
if(p == _attributes.end())
{
throw invalid_argument("missing attribute '" + name + "'");
- return true; // Keep the compiler happy.
}
else if(p->second == "true")
{
@@ -118,7 +117,6 @@ XmlAttributesHelper::asBool(const string& name) const
else
{
throw invalid_argument("invalid attribute `" + name + "': value is not 'false' or 'true'");
- return true; // Keep the compiler happy.
}
}
@@ -142,7 +140,6 @@ XmlAttributesHelper::asBool(const string& name, bool def) const
else
{
throw invalid_argument("invalid attribute `" + name + "': value is not 'false' or 'true'");
- return true; // Keep the compiler happy.
}
}
@@ -855,14 +852,12 @@ ServiceDescriptorBuilder*
ServerDescriptorBuilder::createService(const XmlAttributesHelper& /*attrs*/)
{
throw invalid_argument("<service> element can only be a child of an <icebox> element");
- return 0;
}
ServiceInstanceDescriptorBuilder*
ServerDescriptorBuilder::createServiceInstance(const XmlAttributesHelper& /*attrs*/)
{
throw invalid_argument("<service-instance> element can only be a child of an <icebox> element");
- return 0;
}
void