Huw Davies : qcap: Avoid unused variable warning if v4l is absent.

Alexandre Julliard julliard at winehq.org
Tue Mar 23 15:07:44 CDT 2021


Module: wine
Branch: oldstable
Commit: cb8e15a64307e580123b459e4c5964dc7b0d73d9
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=cb8e15a64307e580123b459e4c5964dc7b0d73d9

Author: Huw Davies <huw at codeweavers.com>
Date:   Tue Dec 22 14:26:36 2020 +0000

qcap: Avoid unused variable warning if v4l is absent.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 73281bf132e1dad9aebf3410b21616727438fb63)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/qcap/v4l.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/qcap/v4l.c b/dlls/qcap/v4l.c
index 0d7e176d3da..e548000187f 100644
--- a/dlls/qcap/v4l.c
+++ b/dlls/qcap/v4l.c
@@ -63,10 +63,9 @@
 #include "qcap_main.h"
 #include "capture.h"
 
-WINE_DEFAULT_DEBUG_CHANNEL(qcap);
-
 #ifdef HAVE_LINUX_VIDEODEV2_H
 
+WINE_DEFAULT_DEBUG_CHANNEL(qcap);
 WINE_DECLARE_DEBUG_CHANNEL(winediag);
 
 static typeof(open) *video_open = open;




More information about the wine-cvs mailing list