From fc55504f2d5179b5d786f20d2248a03159a22fbd Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 31 Aug 2011 20:50:24 +0200 Subject: [PATCH] Fix warning in kernel compilation --- babel.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/babel.h b/babel.h index 73d076f..6e21daf 100644 --- a/babel.h +++ b/babel.h @@ -41,6 +41,13 @@ */ #define SYMBOLS 25 -const char alphabet[] = " .,ABCDEFGHIJKLMNOPRSTUVZ"; + +#if __OPENCL_VERSION__ +__constant +#else +const +#endif +/* 0123456789012345678901234 */ +char alphabet[] = " .,ABCDEFGHIJKLMNOPRSTUVZ"; #endif // BABEL_H -- 2.32.0.93.g670b81a890