From 2220e1a676fd46286f48aa193d70fe5197629f49 Mon Sep 17 00:00:00 2001 From: Holger Lubitz Date: Mon, 20 Aug 2007 20:28:11 +0200 Subject: [PATCH] define malloc attribute --- src/include/compiler.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/include/compiler.h b/src/include/compiler.h index 32416a56..15efb709 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. *