mirror of
https://github.com/mpv-player/mpv
synced 2025-01-11 17:39:38 +00:00
Conditionally declare a conditionally used variable, fixes the warning:
stream/dvb_tune.c:99: warning: unused variable 'sec_dev' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27820 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
50b71e8fab
commit
c0f231ac47
@ -96,7 +96,10 @@ int dvb_set_ts_filt(int fd, uint16_t pid, dmx_pes_type_t pestype);
|
||||
int dvb_open_devices(dvb_priv_t *priv, int n, int demux_cnt)
|
||||
{
|
||||
int i;
|
||||
char frontend_dev[32], dvr_dev[32], demux_dev[32], sec_dev[32];
|
||||
char frontend_dev[32], dvr_dev[32], demux_dev[32];
|
||||
#ifndef CONFIG_DVB_HEAD
|
||||
char sec_dev[32];
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DVB_HEAD
|
||||
sprintf(frontend_dev, "/dev/dvb/adapter%d/frontend0", n);
|
||||
|
Loading…
Reference in New Issue
Block a user