Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Verwiebe <info@jensverwiebe.de>2014-10-24 16:25:02 +0400
committerJens Verwiebe <info@jensverwiebe.de>2014-10-24 16:25:02 +0400
commitc8d10d115cc54417f364aa515ba020a9c7b9bd5d (patch)
tree83ffdf0d9fedbbac93fc19b27cd6f9004ab8e334 /extern/clew
parentcdf53701599ace0b3410cbb75b0313bd969c417c (diff)
OSX/CLEW: silence hundreds of warnings: 'weak_import' attribute only applies to variables and functions
Diffstat (limited to 'extern/clew')
-rw-r--r--extern/clew/include/clew.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/extern/clew/include/clew.h b/extern/clew/include/clew.h
index 624fdb299fe..f4a50dd7254 100644
--- a/extern/clew/include/clew.h
+++ b/extern/clew/include/clew.h
@@ -1815,6 +1815,11 @@ typedef struct _cl_buffer_region {
/* Function signature typedef's */
+#ifdef __APPLE__
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wignored-attributes"
+#endif
+
/* Platform API */
typedef CL_API_ENTRY cl_int (CL_API_CALL *
PFNCLGETPLATFORMIDS)(cl_uint /* num_entries */,
@@ -2476,6 +2481,10 @@ PFNCLCREATEFROMGLTEXTURE3D)(cl_context /* context */,
cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
#endif
+#ifdef __APPLE__
+# pragma GCC diagnostic pop // ignored "-Wignored-attributes"
+#endif
+
/* cl_khr_gl_sharing extension */
#define cl_khr_gl_sharing 1