From f3f8db553e5935d43cbb821d5fb5a7a29dce6a74 Mon Sep 17 00:00:00 2001 From: neville Date: Mon, 30 Mar 2015 03:32:54 +0200 Subject: [PATCH] (Apple) Fix warnings --- libretro-common/file/dir_list.c | 1 + libretro-common/include/glsym/glsym_gl.h | 4 ++++ screenshot.c | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libretro-common/file/dir_list.c b/libretro-common/file/dir_list.c index 052c0ebfe4..14285e22e5 100644 --- a/libretro-common/file/dir_list.c +++ b/libretro-common/file/dir_list.c @@ -218,6 +218,7 @@ struct string_list *dir_list_new(const char *dir, ext_list = NULL; dir_list = NULL; (void)path_buf; + (void)i; if (!(list = string_list_new())) return NULL; diff --git a/libretro-common/include/glsym/glsym_gl.h b/libretro-common/include/glsym/glsym_gl.h index 3bd64df867..108609f32e 100644 --- a/libretro-common/include/glsym/glsym_gl.h +++ b/libretro-common/include/glsym/glsym_gl.h @@ -652,6 +652,10 @@ typedef GLboolean (APIENTRYP RGLSYMGLISIMAGEHANDLERESIDENTARBPROC) (GLuint64 han typedef void (APIENTRYP RGLSYMGLVERTEXATTRIBL1UI64ARBPROC) (GLuint index, GLuint64EXT x); typedef void (APIENTRYP RGLSYMGLVERTEXATTRIBL1UI64VARBPROC) (GLuint index, const GLuint64EXT *v); typedef void (APIENTRYP RGLSYMGLGETVERTEXATTRIBLUI64VARBPROC) (GLuint index, GLenum pname, GLuint64EXT *params); +#ifdef __APPLE__ + struct _cl_context; + struct _cl_event; +#endif typedef GLsync (APIENTRYP RGLSYMGLCREATESYNCFROMCLEVENTARBPROC) (struct _cl_context *context, struct _cl_event *event, GLbitfield flags); typedef void (APIENTRYP RGLSYMGLCLAMPCOLORARBPROC) (GLenum target, GLenum clamp); typedef void (APIENTRYP RGLSYMGLDISPATCHCOMPUTEGROUPSIZEARBPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z); diff --git a/screenshot.c b/screenshot.c index d8ce402c15..cc2b7315cc 100644 --- a/screenshot.c +++ b/screenshot.c @@ -351,12 +351,13 @@ bool screenshot_dump(const char *folder, const void *frame, uint8_t *out_buffer = NULL; bool ret = false; global_t *global = global_get_ptr(); - driver_t *driver = driver_get_ptr(); + driver_t *driver = driver_get_ptr(); (void)file; (void)out_buffer; (void)scaler; (void)global; + (void)driver; fill_dated_filename(shotname, IMG_EXT, sizeof(shotname)); fill_pathname_join(filename, folder, shotname, sizeof(filename));