]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Prefix gcc attributes with 'attr_'
authorTim Rühsen <tim.ruehsen@gmx.de>
Mon, 3 Jun 2019 19:53:05 +0000 (21:53 +0200)
committerTim Rühsen <tim.ruehsen@gmx.de>
Tue, 4 Jun 2019 08:37:27 +0000 (10:37 +0200)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
lib/datum.h
lib/gnutls_int.h

index fe847359b015576cb4c198ba4ac3866ff6c965f2..3d86a0dc728bf17244415a2a809a600b1899779d 100644 (file)
 /* 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);
 
@@ -48,7 +48,7 @@ void _gnutls_free_datum(gnutls_datum_t * dat)
        }
 }
 
-inline static nonnull_all
+inline static attr_nonnull_all
 void _gnutls_free_temp_key_datum(gnutls_datum_t * dat)
 {
        if (dat->data != NULL) {
@@ -59,7 +59,7 @@ void _gnutls_free_temp_key_datum(gnutls_datum_t * dat)
        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) {
index f5a6477852a86d707370800432c2f050380e5549..179d71b4a1f5712b34aed656cc69b771e3cf2342 100644 (file)
@@ -77,21 +77,21 @@ typedef int ssize_t;
 #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