[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:30:05 CEST 2019




Nikos Mavrogiannopoulos started a new discussion on lib/gnutls_int.h: https://gitlab.com/gnutls/gnutls/merge_requests/1017#note_177663385

> -# 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))

Is that intentional?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1017#note_177663385
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/d5ddae30/attachment-0001.html>


More information about the Gnutls-devel mailing list