summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-09 00:27:33 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-09 00:27:33 +0300
commit2fa941b89177cf91cbbc84700c1d7631aa85bcc2 (patch)
treeebc3464db530afd540a67bb86ea735624841ec32 /src/localconsts.h
parentb4ec726fe28f65b15fd4cc7b0ef6fd72b7d24c02 (diff)
downloadmv-2fa941b89177cf91cbbc84700c1d7631aa85bcc2.tar.gz
mv-2fa941b89177cf91cbbc84700c1d7631aa85bcc2.tar.bz2
mv-2fa941b89177cf91cbbc84700c1d7631aa85bcc2.tar.xz
mv-2fa941b89177cf91cbbc84700c1d7631aa85bcc2.zip
Add some missing checks to other files found by paranucker.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h6
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 \