When building libbson-1.6.0, I can see compiler warnings like this :
tests/test-bson.c:1709:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] ASSERT (buf = bson_reserve_buffer (&stack_alloced, src.len));
and yet another one about unused variable. Attached patch fixes it.