[dvblast-devel] Fix warning.

Stas Sergeev git at videolan.org
Tue Oct 29 11:35:00 CET 2013


dvblast | branch: master | Stas Sergeev <stsp at users.sourceforge.net> | Thu Oct 17 14:44:27 2013 +0400| [d0c26bd5c602cada1ad163507f01f5d1de216d6f] | committer: Georgi Chorbadzhiyski

Fix warning.

In DVBAPI < 505 there were SYS_DVBC_ANNEX_AC delivery system which was later
split into several others.

This fixes the following warning when using older kernel headers.

  dvb.c: In function 'FrontendInfo':
  dvb.c:810:9: warning: enumeration value 'SYS_DVBC_ANNEX_AC' not handled in switch [-Wswitch]

> http://git.videolan.org/gitweb.cgi/dvblast.git/?a=commit;h=d0c26bd5c602cada1ad163507f01f5d1de216d6f
---

 dvb.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/dvb.c b/dvb.c
index 24333ad..9bfff9f 100644
--- a/dvb.c
+++ b/dvb.c
@@ -815,6 +815,8 @@ static void FrontendInfo( struct dvb_frontend_info *info, uint32_t version,
         DELSYS_INFO( SYS_DVBC_ANNEX_C, "DVBC_ANNEX_C" )
         DELSYS_INFO( SYS_DVBT2, "DVBT2" )
         DELSYS_INFO( SYS_TURBO, "TURBO" )
+#else
+        DELSYS_INFO( SYS_DVBC_ANNEX_AC, "DVBC_ANNEX_AC" )
 #endif
 #if DVBAPI_VERSION >= 507
         DELSYS_INFO( SYS_DTMB, "DTMB" )



More information about the dvblast-devel mailing list