]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
define __nonnull
authorHolger Lubitz <hal@duncan.ol.sub.de>
Wed, 1 Aug 2007 23:01:01 +0000 (01:01 +0200)
committerHolger Lubitz <hal@duncan.ol.sub.de>
Wed, 1 Aug 2007 23:01:01 +0000 (01:01 +0200)
src/include/compiler.h

index e79f9fb2dee1ac50d167fbc8c345edf51b596e3e..32416a561d14e5575242eeb8e4f2ad5ee9816f2a 100644 (file)
@@ -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.
  *