summaryrefslogtreecommitdiffstats
path: root/sys/sys/cdefs.h
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2017-03-20 01:53:50 +0000
committerpfg <pfg@FreeBSD.org>2017-03-20 01:53:50 +0000
commit1c8b5bf4b5b8e893dd389d4ac3e6fb55a2ca0858 (patch)
tree9ea42cda1dd69f3b9da7761671efc0ef9c7bb98c /sys/sys/cdefs.h
parent1ed1f785e01f33f2649e0fdfb2e988deb468274e (diff)
downloadFreeBSD-src-1c8b5bf4b5b8e893dd389d4ac3e6fb55a2ca0858.zip
FreeBSD-src-1c8b5bf4b5b8e893dd389d4ac3e6fb55a2ca0858.tar.gz
MFC r312942:
Remove GCC's __nonnull() attribute definition. While GCC's __nonnull__ attribute is generally useful to prevent misuse of some functions it also tends to do rather dangerous "optimizations". Now that we have replaced all such uses with the clang nullability qualifiers, the GCC attribute is unnecessary. Remove the definition completely to prevent its use in system's headers.
Diffstat (limited to 'sys/sys/cdefs.h')
-rw-r--r--sys/sys/cdefs.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
index 8027d33..535c721 100644
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -376,14 +376,6 @@
#define __noinline
#endif
-#if __GNUC_PREREQ__(3, 3)
-#define __nonnull(x) __attribute__((__nonnull__(x)))
-#define __nonnull_all __attribute__((__nonnull__))
-#else
-#define __nonnull(x)
-#define __nonnull_all
-#endif
-
#if __GNUC_PREREQ__(3, 4)
#define __fastcall __attribute__((__fastcall__))
#define __result_use_check __attribute__((__warn_unused_result__))
OpenPOWER on IntegriCloud