Commit 17e68d98 authored by Ondrej Lehecka's avatar Ondrej Lehecka Committed by facebook-github-bot-1

Fix 'missing declarations' and 'unusued parameter' warnings

Summary: enum iterators operator!= didn't use the iterator parameter for comparison
because they assumed you only ever compare to end. Change the operator!= to
look at the iterator parameter to check if it was end.

Thrift generated code for reflection initializers for some types that weren't
declared before definition because they were never called outside of the file.
Marked those initializers as 'static'.

Reviewed By: @alandau

Differential Revision: D2284371
parent b74275bb
......@@ -32,7 +32,7 @@ class IPAddressFormatException : public std::exception {
explicit IPAddressFormatException(const std::string& msg)
: msg_(msg) {}
IPAddressFormatException(
const IPAddressFormatException& exception_) = default;
const IPAddressFormatException&) = default;
template<typename... Args>
explicit IPAddressFormatException(Args&&... args)
: msg_(to<std::string>(std::forward<Args>(args)...)) {}
......@@ -51,7 +51,7 @@ class InvalidAddressFamilyException : public IPAddressFormatException {
explicit InvalidAddressFamilyException(const std::string& msg)
: IPAddressFormatException(msg) {}
InvalidAddressFamilyException(
const InvalidAddressFamilyException& ex) = default;
const InvalidAddressFamilyException&) = default;
explicit InvalidAddressFamilyException(sa_family_t family)
: IPAddressFormatException("Address family " +
detail::familyNameStr(family) +
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment