projects
/
barrelfish
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d20b159
)
cdefs: do not use __nonnull function argument attribute
author
Reto Achermann
<reto.achermann@inf.ethz.ch>
Sun, 23 Jul 2017 07:03:11 +0000 (09:03 +0200)
committer
Reto Achermann
<reto.achermann@inf.ethz.ch>
Sun, 23 Jul 2017 07:03:11 +0000 (09:03 +0200)
Signed-off-by: Reto Achermann <reto.achermann@inf.ethz.ch>
include/sys/cdefs.h
patch
|
blob
|
history
diff --git
a/include/sys/cdefs.h
b/include/sys/cdefs.h
index
e6077c8
..
812acea
100644
(file)
--- a/
include/sys/cdefs.h
+++ b/
include/sys/cdefs.h
@@
-362,8
+362,14
@@
#endif
#if __GNUC_PREREQ__(3, 3)
+/*
+ the nonnull attribute caused some problems with the posixcompat library
+ as null-checks in the function will trigger an error. -RA 2017-07-22
#define __nonnull(x) __attribute__((__nonnull__(x)))
#define __nonnull_all __attribute__((__nonnull__))
+*/
+#define __nonnull(x)
+#define __nonnull_all
#else
#define __nonnull(x)
#define __nonnull_all