diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-09-17 21:38:46 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-09-17 22:33:28 +0100 |
commit | 7bcd1d2b75d280cecfc23877bb13426a28c07a1f (patch) | |
tree | ecbecf9cbdb421b07323e80e7423a2f76a3409d2 /src/sna/sna_video.c | |
parent | a5b5b4ebb14cab19258dd1cbc12721aaa9df226d (diff) |
sna: perform a warnings reduction pass
Didn't spot anything that might have led to a genuine bug, but this
should help improve the signal-to-noise ratio of warnings in the future.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_video.c')
-rw-r--r-- | src/sna/sna_video.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/sna/sna_video.c b/src/sna/sna_video.c index e50b3dd9..c8171dc5 100644 --- a/src/sna/sna_video.c +++ b/src/sna/sna_video.c @@ -79,7 +79,7 @@ static inline Bool sna_video_xvmc_setup(struct sna *sna, void sna_video_free_buffers(struct sna *sna, struct sna_video *video) { - int i; + unsigned int i; for (i = 0; i < ARRAY_SIZE(video->old_buf); i++) { if (video->old_buf[i]) { @@ -313,8 +313,7 @@ static void sna_memcpy_plane(unsigned char *dst, unsigned char *src, } static void -sna_copy_planar_data(struct sna *sna, - struct sna_video *video, +sna_copy_planar_data(struct sna_video *video, const struct sna_video_frame *frame, unsigned char *src, unsigned char *dst, @@ -365,8 +364,7 @@ sna_copy_planar_data(struct sna *sna, } static void -sna_copy_packed_data(struct sna *sna, - struct sna_video *video, +sna_copy_packed_data(struct sna_video *video, const struct sna_video_frame *frame, unsigned char *buf, unsigned char *dst, @@ -523,14 +521,14 @@ sna_video_copy_data(struct sna *sna, int srcPitch = ALIGN(frame->width, 0x4); int srcPitch2 = ALIGN((frame->width >> 1), 0x4); - sna_copy_planar_data(sna, video, frame, + sna_copy_planar_data(video, frame, buf, dst, srcPitch, srcPitch2, nlines, top, left); } else { int srcPitch = frame->width << 1; - sna_copy_packed_data(sna, video, frame, + sna_copy_packed_data(video, frame, buf, dst, srcPitch, top, left); |