changeset 24450:17fd46c2fcfb

12150 loader: warning: 'alloc_align' attribute ignored on a function returning 'int' Reviewed by: Robert Mustacchi <rm@fingolfin.org> Reviewed by: Matthias Scheler <mscheler@tintri.com> Approved by: Dan McDonald <danmcd@joyent.com>
author Toomas Soome <tsoome@me.com>
date Sun, 05 Jan 2020 12:03:45 +0200
parents a343da3620d3
children cbea130ad8f1
files usr/src/boot/include/stdlib.h
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/boot/include/stdlib.h	Sat Jan 04 20:10:23 2020 +0200
+++ b/usr/src/boot/include/stdlib.h	Sun Jan 05 12:03:45 2020 +0200
@@ -172,8 +172,7 @@
 int	 rand_r(unsigned *);			/* (TSF) */
 #endif
 #if __POSIX_VISIBLE >= 200112
-int	 posix_memalign(void **, size_t, size_t) __nonnull(1) __alloc_align(2)
-	    __alloc_size(3);			/* (ADV) */
+int	 posix_memalign(void **, size_t, size_t);  /* (ADV) */
 int	 setenv(const char *, const char *, int);
 int	 unsetenv(const char *);
 #endif