summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-26 17:00:33 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-26 17:00:33 +0300
commite2b84bddbb089f43a9c2c3741545378614481a32 (patch)
treecedc8e4cbf04958f04111d8abe90d950d4fd11b6
parent104df5cae8521f4a234381567b19e6b4da3ff1f0 (diff)
downloadmv-e2b84bddbb089f43a9c2c3741545378614481a32.tar.gz
mv-e2b84bddbb089f43a9c2c3741545378614481a32.tar.bz2
mv-e2b84bddbb089f43a9c2c3741545378614481a32.tar.xz
mv-e2b84bddbb089f43a9c2c3741545378614481a32.zip
Fix compilation warning with cilk_plus.
-rw-r--r--src/localconsts.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index b0ab4ff3c..8ff706f4a 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -85,8 +85,13 @@
#else
#define restrict2 __restrict__
#endif
+#ifndef ENABLE_CILKPLUS
#define A_CONST __attribute__ ((const))
#define A_PURE __attribute__ ((pure))
+#else
+#define A_CONST
+#define A_PURE
+#endif
#ifdef __INTEL_COMPILER
#define RETURNS_NONNULL