From e2b84bddbb089f43a9c2c3741545378614481a32 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 26 Dec 2015 17:00:33 +0300 Subject: Fix compilation warning with cilk_plus. --- src/localconsts.h | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3-60-g2f50