From 6b865b8650b62f448760cfbe50cc563f7ab85da9 Mon Sep 17 00:00:00 2001 From: Wade Walker Date: Wed, 5 Mar 2014 16:10:56 -0600 Subject: Remove alignment warning in gluegen preprocessing. Turns off the warning about CL_ALIGNED not being defined for the current compiler, but only inside the gluegen preprocessor. If CL_ALIGNED isn't defined for the real C compiler on the platform, the warning will still show up during C compilation. --- make/stub_includes/CL_orig/cl_platform.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/make/stub_includes/CL_orig/cl_platform.h b/make/stub_includes/CL_orig/cl_platform.h index c8c6d7f6..2dbbb9d7 100644 --- a/make/stub_includes/CL_orig/cl_platform.h +++ b/make/stub_includes/CL_orig/cl_platform.h @@ -404,9 +404,12 @@ typedef unsigned int cl_GLenum; /* #include */ /* #define CL_ALIGNED(_x) _CRT_ALIGN(_x) */ #define CL_ALIGNED(_x) +/* Don't warn if we're in GlueGen's preprocessor; it doesn't have compiler defines set */ +#elif defined( __GLUEGEN__ ) + #define CL_ALIGNED(_x) #else - #warning "Need to implement some method to align data here" - #define CL_ALIGNED(_x) + #warning "Need to implement some method to align data here" + #define CL_ALIGNED(_x) #endif /* Indicate whether .xyzw, .s0123 and .hi.lo are supported */ -- cgit v1.2.3