Mercurial > mplayer.hg
changeset 27786:187ca29cd878
Conditionally declare a conditionally used variable, fixes the warning:
stream/dvb_tune.c:99: warning: unused variable 'sec_dev'
author | diego |
---|---|
date | Fri, 24 Oct 2008 09:13:04 +0000 |
parents | e3d6122edf03 |
children | b9cbb6a5d5a3 |
files | stream/dvb_tune.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/dvb_tune.c Fri Oct 24 09:08:03 2008 +0000 +++ b/stream/dvb_tune.c Fri Oct 24 09:13:04 2008 +0000 @@ -96,7 +96,10 @@ 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);