Merge pull request #4224 from sfc-gh-tclinkenbeard/fix-wreturn-type-warning

Fix -Wreturn-type warning
This commit is contained in:
Andrew Noyes 2021-01-22 13:19:34 -08:00 committed by GitHub
commit f4cb1b9ad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -855,6 +855,9 @@ static bool checkCompatible(const PeerCompatibilityPolicy& policy, ProtocolVersi
return version.version() == policy.version.version();
case RequirePeer::AtLeast:
return version.version() >= policy.version.version();
default:
ASSERT(false);
return false;
}
}