On Thu, 15 Feb 2024 17:40:01 +0100, Wietse Venema via Postfix-devel wrote:
> 
> Wietse Venema via Postfix-devel:
> > And there is an even simpler workaround: an empty statement.
> > 
> >      case BSON_TYPE_ARRAY:
> >      /* Empty statement for pre-C23 Clang. */ ;
> >      const uint8_t *dataBuffer = NULL;
> >      /* other existing code */
> >      default:
> > 
> > No {} trickery needed.
> > 
> > Can you confirm this?

Yes this works as well.
 
> BTW which 'client' package are you linking Postfx with in FreeBSD?
> Is that the third-party libmongo-client?

No, I use devel/mongo-c-driver (and devel/libbson):

work-default/postfix-3.9-20240213/lib/postfix-mongodb.so:
        libmongoc-1.0.so.0 => /usr/local/lib/libmongoc-1.0.so.0 (0x21f634afd000)
        libbson-1.0.so.0 => /usr/local/lib/libbson-1.0.so.0 (0x21f636049000)
        [...]

Thanks.

--
Herbert
_______________________________________________
Postfix-devel mailing list -- postfix-devel@postfix.org
To unsubscribe send an email to postfix-devel-le...@postfix.org

Reply via email to