diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-26 17:00:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-26 17:00:33 +0300 |
commit | e2b84bddbb089f43a9c2c3741545378614481a32 (patch) | |
tree | cedc8e4cbf04958f04111d8abe90d950d4fd11b6 /src/localconsts.h | |
parent | 104df5cae8521f4a234381567b19e6b4da3ff1f0 (diff) | |
download | manaverse-e2b84bddbb089f43a9c2c3741545378614481a32.tar.gz manaverse-e2b84bddbb089f43a9c2c3741545378614481a32.tar.bz2 manaverse-e2b84bddbb089f43a9c2c3741545378614481a32.tar.xz manaverse-e2b84bddbb089f43a9c2c3741545378614481a32.zip |
Fix compilation warning with cilk_plus.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r-- | src/localconsts.h | 5 |
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 |