[gnutls-devel] GnuTLS | Prefix gcc attributes with 'attr_' (!1017)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Tue Jun 4 11:52:50 CEST 2019
Tim Rühsen commented on a discussion on lib/gnutls_int.h: https://gitlab.com/gnutls/gnutls/merge_requests/1017#note_177673737
> -# define G_GNUC_WGET_NONNULL_ALL
> -# define G_GNUC_WGET_NONNULL(a)
> +# define attr_nonnull_all
> +# define attr_nonnull(a)
> #endif
>
> #if _GNUTLS_GCC_VERSION >= 30400 && (_GNUTLS_CLANG_VERSION == 0 || _GNUTLS_CLANG_VERSION >= 40000)
> -# define warn_unused_result __attribute__((warn_unused_result))
> +# define attr_warn_unused_result __attribute__((warn_unused_result))
> #else
> -# define warn_unused_result
> +# define attr_warn_unused_result
> #endif
>
> #if _GNUTLS_GCC_VERSION >= 70100
> -# define FALLTHROUGH __attribute__ ((fallthrough))
Sorry, I removed the spacing because the purpose of aligning with other code is no longer given.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1017#note_177673737
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20190604/5e3b6af2/attachment.html>
More information about the Gnutls-devel
mailing list