summaryrefslogtreecommitdiff
path: root/bson
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-04-28 20:57:32 -0400
committerEliot Horowitz <eliot@10gen.com>2010-04-28 20:57:32 -0400
commit19b7872bd8453d1bce0c86340ba506d8ca0e586d (patch)
tree2eab0618c227045ff31c93aeeec9b582c6524757 /bson
parentb5818a204d9d3fa04d00eaaa97d946c8f15f0498 (diff)
downloadmongo-19b7872bd8453d1bce0c86340ba506d8ca0e586d.tar.gz
remove warnings and useless assert
Diffstat (limited to 'bson')
-rw-r--r--bson/bsoninlines.h4
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;