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