diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-09 00:27:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-09 00:27:33 +0300 |
commit | 2fa941b89177cf91cbbc84700c1d7631aa85bcc2 (patch) | |
tree | ebc3464db530afd540a67bb86ea735624841ec32 /src/localconsts.h | |
parent | b4ec726fe28f65b15fd4cc7b0ef6fd72b7d24c02 (diff) | |
download | plus-2fa941b89177cf91cbbc84700c1d7631aa85bcc2.tar.gz plus-2fa941b89177cf91cbbc84700c1d7631aa85bcc2.tar.bz2 plus-2fa941b89177cf91cbbc84700c1d7631aa85bcc2.tar.xz plus-2fa941b89177cf91cbbc84700c1d7631aa85bcc2.zip |
Add some missing checks to other files found by paranucker.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r-- | src/localconsts.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 \ |