Fix -Wreturn-type warnings

This commit is contained in:
Lucas Betschart 2017-12-28 23:58:10 +01:00
parent 1065303ecb
commit ff5564e4ce

1
db.h
View file

@ -328,6 +328,7 @@ public:
bool Get(CServiceResult &ip, int& wait) { bool Get(CServiceResult &ip, int& wait) {
CRITICAL_BLOCK(cs) CRITICAL_BLOCK(cs)
return Get_(ip, wait); return Get_(ip, wait);
return false;
} }
void GetMany(std::vector<CServiceResult> &ips, int max, int& wait) { void GetMany(std::vector<CServiceResult> &ips, int max, int& wait) {
CRITICAL_BLOCK(cs) { CRITICAL_BLOCK(cs) {