diff options
author | Aaron <aaron@10gen.com> | 2008-12-16 18:12:25 -0500 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2008-12-16 18:12:25 -0500 |
commit | 99bf277c1811252df9da3c19b5308ce2d55f0413 (patch) | |
tree | e41f42fedcd24fc8a94641f7842cfd6ead4b451c /client | |
parent | 6215e1901476e2aeda398acd668189ca390c22d3 (diff) | |
download | mongo-99bf277c1811252df9da3c19b5308ce2d55f0413.tar.gz |
g++ check return type, fix some warnings
Diffstat (limited to 'client')
-rw-r--r-- | client/dbclient.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/client/dbclient.h b/client/dbclient.h index 6d91213bccb..2cf188c5285 100644 --- a/client/dbclient.h +++ b/client/dbclient.h @@ -89,6 +89,7 @@ public: BSONObj o = next(); BSONElement e = o.firstElement(); assert( strcmp(e.fieldName(), "$err") != 0 ); + return o; } /* cursor no longer valid -- use with tailable cursors. |