From 2fa941b89177cf91cbbc84700c1d7631aa85bcc2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 9 Aug 2015 00:27:33 +0300 Subject: Add some missing checks to other files found by paranucker. --- src/localconsts.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/localconsts.h') diff --git a/src/localconsts.h b/src/localconsts.h index 560e5f152..628584a45 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -150,6 +150,12 @@ #define FOR_EACHP(type, iter, array) for (type iter = array->begin(), \ iter##_end = array->end(); iter != iter##_end; ++ iter) +#ifdef ENABLE_CHECKPLUGIN +#define A_NONNULLPOINTER __attribute__((nonnullpointer)) +#else +#define A_NONNULLPOINTER +#endif + #ifdef ENABLE_CHECKS #define CHECKLISTENERS \ -- cgit v1.2.3-60-g2f50