[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:48:11 CEST 2019




Tim Rühsen commented on a discussion on lib/gnutls_int.h: https://gitlab.com/gnutls/gnutls/merge_requests/1017#note_177671585

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

No, it was in the old code. I removed it meanwhile.

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


More information about the Gnutls-devel mailing list