From bec630c34753f7fbbac8712661b596ff5a76b7c1 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 12 Nov 2012 23:24:01 +0100 Subject: clang: fix all warnings except deprecations --- video/out/gl_header_fixes.h | 3 +++ video/out/vo_corevideo.m | 3 ++- video/out/vo_opengl.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'video') diff --git a/video/out/gl_header_fixes.h b/video/out/gl_header_fixes.h index d149a9970a..41a3aabcd3 100644 --- a/video/out/gl_header_fixes.h +++ b/video/out/gl_header_fixes.h @@ -250,8 +250,11 @@ #define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092 #define GLX_CONTEXT_FLAGS_ARB 0x2094 #define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126 +#ifndef __APPLE__ +// These are respectively 0x00000001 and 0x00000002 on OSX #define GLX_CONTEXT_DEBUG_BIT_ARB 0x0001 #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002 +#endif #define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 #define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 #endif diff --git a/video/out/vo_corevideo.m b/video/out/vo_corevideo.m index 627281b4e0..04ab7019d1 100644 --- a/video/out/vo_corevideo.m +++ b/video/out/vo_corevideo.m @@ -330,8 +330,9 @@ static CFStringRef get_cv_csp_matrix(struct vo *vo) return kCVImageBufferYCbCrMatrix_ITU_R_709_2; case MP_CSP_SMPTE_240M: return kCVImageBufferYCbCrMatrix_SMPTE_240M_1995; + default: + return kCVImageBufferYCbCrMatrix_ITU_R_601_4; } - return kCVImageBufferYCbCrMatrix_ITU_R_601_4; } static void set_yuv_colorspace(struct vo *vo) diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c index 1900fd84a1..0662c7474b 100644 --- a/video/out/vo_opengl.c +++ b/video/out/vo_opengl.c @@ -2208,7 +2208,7 @@ static int preinit(struct vo *vo, const char *arg) }; if (subopt_parse(arg, subopts) != 0) { - mp_msg(MSGT_VO, MSGL_FATAL, help_text); + mp_msg(MSGT_VO, MSGL_FATAL, "%s", help_text); goto err_out; } -- cgit v1.2.3