diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-09-18 18:17:42 -0400 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-19 01:35:43 +0200 |
commit | 6a817ac1e9a0d2b747f71abc5345a54434ceb4a2 (patch) | |
tree | a077aa6c525303aa683ffc27357d327e516ef517 /libavdevice/xcbgrab.c | |
parent | 7a30f51446223567a6341416be38a7c30d748fd2 (diff) | |
download | ffmpeg-6a817ac1e9a0d2b747f71abc5345a54434ceb4a2.tar.gz |
avdevice/xcbgrab: fix -Wunused-variable
This patch fixes a -Wunused-variable reported in e.g
http://fate.ffmpeg.org/log.cgi?time=20150918194649&log=compile&slot=x86_64-debian-asan-144800.
av_unused is used as opposed to a header guard for readability.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavdevice/xcbgrab.c')
-rw-r--r-- | libavdevice/xcbgrab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c index f169f93665..2da7ec7d4f 100644 --- a/libavdevice/xcbgrab.c +++ b/libavdevice/xcbgrab.c @@ -591,7 +591,7 @@ static void setup_window(AVFormatContext *s) uint32_t values[] = { 1, XCB_EVENT_MASK_EXPOSURE | XCB_EVENT_MASK_STRUCTURE_NOTIFY }; - xcb_rectangle_t rect = { 0, 0, c->width, c->height }; + av_unused xcb_rectangle_t rect = { 0, 0, c->width, c->height }; c->window = xcb_generate_id(c->conn); |