From: Pierre Habouzit Date: Fri, 11 Jan 2008 20:10:14 +0000 (+0100) Subject: Add some useful macros. X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=92511c08b69239a31f10c5541733e58afddef591;p=apps%2Fmadmutt.git Add some useful macros. --- diff --git a/lib-lib/lib-lib.h b/lib-lib/lib-lib.h index 04d914c..72ba9aa 100644 --- a/lib-lib/lib-lib.h +++ b/lib-lib/lib-lib.h @@ -100,6 +100,9 @@ #define MAX(a,b) ((a) < (b) ? (b) : (a)) #define MIN(a,b) ((a) < (b) ? (a) : (b)) +#define __must_check__ __attribute__((warn_unused_result)) +#define IGNORE(expr) do { if (expr) (void)0; } while (0) + /* }}} */ typedef union __attribute__((transparent_union)) anytype {