aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn W. Horigan <john@glyphic.com>2017-05-27 11:45:44 -0700
committerJohn W. Horigan <john@glyphic.com>2017-05-27 11:45:44 -0700
commit5b9188320e0e4ab33c0a7c0dd7158a6ed7df0693 (patch)
tree815eb76b4393346b288cf63ff636bb27eb81a38f
parentRemoved unused parameters (diff)
downloadargs.hxx-5b9188320e0e4ab33c0a7c0dd7158a6ed7df0693.tar.xz
Fix unreachable code warning
-rw-r--r--args.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/args.hxx b/args.hxx
index b8217d9..93e4464 100644
--- a/args.hxx
+++ b/args.hxx
@@ -1452,10 +1452,10 @@ namespace args
{
#ifdef ARGS_NOEXCEPT
error = Error::Help;
+ return this;
#else
throw Help(arg);
#endif
- return this;
}
return nullptr;
}
@@ -1466,10 +1466,10 @@ namespace args
{
#ifdef ARGS_NOEXCEPT
error = Error::Help;
+ return this;
#else
throw Help(std::string(1, arg));
#endif
- return this;
}
return nullptr;
}