From 1e29286c8c98aedcb01ef66378ca10c49f354e50 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 24 Feb 2017 14:33:10 +0100 Subject: [PATCH] Cycles: Fix compilation warning with CUDA on OSX --- intern/cycles/util/util_static_assert.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/intern/cycles/util/util_static_assert.h b/intern/cycles/util/util_static_assert.h index 033d85e8ec6..e90049254de 100644 --- a/intern/cycles/util/util_static_assert.h +++ b/intern/cycles/util/util_static_assert.h @@ -43,7 +43,9 @@ template <> class StaticAssertFailure {}; # endif /* __COUNTER__ */ # endif /* C++11 or MSVC2015 */ #else /* __KERNEL_GPU__ */ -# define static_assert(statement, message) +# ifndef static_assert +# define static_assert(statement, message) +# endif #endif /* __KERNEL_GPU__ */ /* TODO(sergey): For until C++11 is a bare minimum for us,