projects
/
blender.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cdf5370
)
OSX/CLEW: silence hundreds of warnings: 'weak_import' attribute only applies to varia...
author
Jens Verwiebe <info@jensverwiebe.de>
Fri, 24 Oct 2014 12:25:02 +0000
(14:25 +0200)
committer
Jens Verwiebe <info@jensverwiebe.de>
Fri, 24 Oct 2014 12:25:02 +0000
(14:25 +0200)
extern/clew/include/clew.h
patch
|
blob
|
history
diff --git
a/extern/clew/include/clew.h
b/extern/clew/include/clew.h
index 624fdb299fed083ffe2ea15d0c822c22927d412f..f4a50dd72548fb2a1c1ac18d3aedf64b6e530eae 100644
(file)
--- 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 */
/* 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 */,
/* 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
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
/* cl_khr_gl_sharing extension */
#define cl_khr_gl_sharing 1