/* This will copy the provided data in @dat. If the provided data are
* NULL or zero-size @dat will be NULL as well.
*/
-warn_unused_result nonnull((1))
+attr_warn_unused_result attr_nonnull((1))
int _gnutls_set_datum(gnutls_datum_t * dat, const void *data,
size_t data_size);
/* This will always return a non-NULL, and zero-terminated string in @dat.
*/
-warn_unused_result nonnull((1))
+attr_warn_unused_result attr_nonnull((1))
int _gnutls_set_strdatum(gnutls_datum_t * dat, const void *data,
size_t data_size);
}
}
-inline static nonnull_all
+inline static attr_nonnull_all
void _gnutls_free_temp_key_datum(gnutls_datum_t * dat)
{
if (dat->data != NULL) {
dat->size = 0;
}
-inline static nonnull_all
+inline static attr_nonnull_all
void _gnutls_free_key_datum(gnutls_datum_t * dat)
{
if (dat->data != NULL) {
#endif
#if _GNUTLS_GCC_VERSION >= 30300
-# define nonnull_all __attribute__ ((nonnull))
-# define nonnull(a) __attribute__ ((nonnull a))
+# define attr_nonnull_all __attribute__ ((nonnull))
+# define attr_nonnull(a) __attribute__ ((nonnull a))
#else
-# 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))
+# define FALLTHROUGH __attribute__ ((fallthrough))
#else
# define FALLTHROUGH
#endif