From: Holger Lubitz Date: Wed, 1 Aug 2007 23:01:01 +0000 (+0200) Subject: define __nonnull X-Git-Tag: v0.9.3~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3859abb7de806d17e05ddd93c01f3a6535cf618d;p=thirdparty%2Fipxe.git define __nonnull --- diff --git a/src/include/compiler.h b/src/include/compiler.h index 8d76ac474..d680ae89e 100644 --- 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. *