http://git.etherboot.org
/
people
/
xl0
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0d0444
)
define __nonnull
author
Holger Lubitz
<hal@duncan.ol.sub.de>
Wed, 1 Aug 2007 23:01:01 +0000
(
01:01
+0200)
committer
Holger Lubitz
<hal@duncan.ol.sub.de>
Wed, 1 Aug 2007 23:01:01 +0000
(
01:01
+0200)
src/include/compiler.h
patch
|
blob
|
history
diff --git
a/src/include/compiler.h
b/src/include/compiler.h
index
e79f9fb
..
32416a5
100644
(file)
--- a/
src/include/compiler.h
+++ b/
src/include/compiler.h
@@
-291,6
+291,13
@@
extern void dbg_hex_dump_da ( unsigned long dispaddr,
*/
#define __const __attribute__ (( const ))
+/**
+ * Declare a function's pointer parameters as non-null - i.e. force
+ * compiler to check pointers at compile time and enable possible
+ * optimizations based on that fact
+ */
+#define __nonnull __attribute__ (( nonnull ))
+
/**
* Declare a function as used.
*