[gnutls-devel] GnuTLS | Draft: fix mingw (!2076)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Mon Mar 2 06:24:01 CET 2026




Daiki Ueno started a new discussion on tests/name-constraints-ip.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/2076#note_3123287687

 >  _gnutls_x509_name_constraints_merge(gnutls_x509_name_constraints_t nc,
 >  				    gnutls_x509_name_constraints_t nc2);
 >  
 > -static void check_for_error(int ret)
 > -{
 > -	if (ret != GNUTLS_E_SUCCESS)
 > -		fail_msg("error in %d: %s\n", __LINE__, gnutls_strerror(ret));
 > -}
 > +#define check_for_error(ret)                                    \

Why? I generally prefer a regular function rather than a macro; maybe we could make `static inline` though.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/2076#note_3123287687
You're receiving this email because of your account on gitlab.com. Unsubscribe from this thread: https://gitlab.com/-/sent_notifications/3-77hsezrsqnbni2at3qiv94gid/unsubscribe | Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20260302/02e1cbb8/attachment-0001.html>


More information about the Gnutls-devel mailing list