[vlc-devel] [PATCH 6/6] copy: remove compilation warnings on some systems
Jean-Yves Avenard
jyavenard at gmail.com
Fri Jun 13 14:02:41 CEST 2014
From: Jean-Yves Avenard <jyavenard at mythtv.org>
---
modules/video_chroma/copy.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/modules/video_chroma/copy.c b/modules/video_chroma/copy.c
index 9a0408a..a1a7ef5 100644
--- a/modules/video_chroma/copy.c
+++ b/modules/video_chroma/copy.c
@@ -73,6 +73,9 @@ static void SSE_CopyPlane(uint8_t *dst, size_t dst_pitch,
const uint8_t *src, size_t src_pitch,
unsigned width, unsigned height, unsigned cpu)
{
+#ifndef CAN_COMPILE_SSE4_1
+ (void)cpu;
+#endif
asm volatile ("mfence");
for (unsigned y = 0; y < height; y++) {
@@ -119,6 +122,9 @@ static void SSE_SplitPlanes(uint8_t *dstu, size_t dstu_pitch,
const uint8_t *src, size_t src_pitch,
unsigned width, unsigned height, unsigned cpu)
{
+#ifndef CAN_COMPILE_SSE3
+ (void)cpu;
+#endif
const uint8_t shuffle[] = { 0, 2, 4, 6, 8, 10, 12, 14,
1, 3, 5, 7, 9, 11, 13, 15 };
const uint8_t mask[] = { 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00,
--
1.9.1
More information about the vlc-devel
mailing list