diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-04-28 20:57:32 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-04-28 20:57:32 -0400 |
commit | 19b7872bd8453d1bce0c86340ba506d8ca0e586d (patch) | |
tree | 2eab0618c227045ff31c93aeeec9b582c6524757 /bson | |
parent | b5818a204d9d3fa04d00eaaa97d946c8f15f0498 (diff) | |
download | mongo-19b7872bd8453d1bce0c86340ba506d8ca0e586d.tar.gz |
remove warnings and useless assert
Diffstat (limited to 'bson')
-rw-r--r-- | bson/bsoninlines.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bson/bsoninlines.h b/bson/bsoninlines.h index 9907772eef5..5ff47957724 100644 --- a/bson/bsoninlines.h +++ b/bson/bsoninlines.h @@ -330,10 +330,10 @@ namespace mongo { { const char *p = value(); size_t len1 = ( maxLen == -1 ) ? strlen( p ) : strnlen( p, remain ); - massert( 10318 , "Invalid regex string", len1 != -1 ); + //massert( 10318 , "Invalid regex string", len1 != -1 ); // ERH - 4/28/10 - don't think this does anything p = p + len1 + 1; size_t len2 = ( maxLen == -1 ) ? strlen( p ) : strnlen( p, remain - len1 - 1 ); - massert( 10319 , "Invalid regex options string", len2 != -1 ); + //massert( 10319 , "Invalid regex options string", len2 != -1 ); // ERH - 4/28/10 - don't think this does anything x = (int) (len1 + 1 + len2 + 1); } break; |