diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2017-01-01 17:16:47 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2017-01-01 17:16:47 +0000 |
commit | f1b298ad46305d58fa4bd8a02db4ec12d3e3726e (patch) | |
tree | fcb4c03eb4e320e2d67e143f717eee4d3f76f09e /include/stdlib.h | |
parent | d2aa1af62902b45be2cab4165f694ead9f90c84a (diff) | |
download | src-f1b298ad46305d58fa4bd8a02db4ec12d3e3726e.tar.gz src-f1b298ad46305d58fa4bd8a02db4ec12d3e3726e.zip |
Remove some uses of the GCC __nonnull() attribute.
While the checks are considered useful, the attribute does dangerous
optimizations, removing NULL checks where they can be needed. Remove the
uses of this attribute introduced in r281130: the changes were inspired on
Google's bionic where this attribute is not used anymore.
The __nonnull() attribute will be deprecrated from our headers and
replaced with the Clang _Nonnull qualifier in the future.
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=311012
Diffstat (limited to 'include/stdlib.h')
-rw-r--r-- | include/stdlib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 14e20048a773..e27f3a220c47 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -172,7 +172,7 @@ char *realpath(const char * __restrict, char * __restrict); int rand_r(unsigned *); /* (TSF) */ #endif #if __POSIX_VISIBLE >= 200112 -int posix_memalign(void **, size_t, size_t) __nonnull(1); /* (ADV) */ +int posix_memalign(void **, size_t, size_t); /* (ADV) */ int setenv(const char *, const char *, int); int unsetenv(const char *); #endif |