From: Holger Lubitz Date: Mon, 20 Aug 2007 18:28:11 +0000 (+0200) Subject: define malloc attribute X-Git-Tag: v0.9.3~101^2^2^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2220e1a676fd46286f48aa193d70fe5197629f49;p=thirdparty%2Fipxe.git define malloc attribute --- diff --git a/src/include/compiler.h b/src/include/compiler.h index 32416a561..15efb709e 100644 --- a/src/include/compiler.h +++ b/src/include/compiler.h @@ -298,6 +298,12 @@ extern void dbg_hex_dump_da ( unsigned long dispaddr, */ #define __nonnull __attribute__ (( nonnull )) +/** + * Declare a pointer returned by a function as a unique memory address + * as returned by malloc-type functions. + */ +#define __malloc __attribute__ (( malloc )) + /** * Declare a function as used. *