Path to fix compilation warning for ttxtsubs plugin

Dominique Dumont domi.dumont at free.fr
Tue Oct 18 16:41:08 UTC 2005


Hello

When compiling with g++ 4.0.2 the ttxtsubs plugin package provided by
Tobias for Sarge, I get some warnings that are fixed by the attached
patch (dpatch to be applied *after* the directors-cut patch).

Feel free to include it in vdr-debian project.

Cheers

-------------- next part --------------
#! /bin/sh /usr/share/dpatch/dpatch-run
## 94_fix_brace_warning.dpatch by  <domi.dumont at free.fr>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: fix compilation warnings seen with g++ 4.0.2

@DPATCH@
diff -urNad vdr-plugin-ttxtsubs-0.0.5~/ttxtsubs.c vdr-plugin-ttxtsubs-0.0.5/ttxtsubs.c
--- vdr-plugin-ttxtsubs-0.0.5~/ttxtsubs.c	2005-10-18 13:57:37.000000000 +0200
+++ vdr-plugin-ttxtsubs-0.0.5/ttxtsubs.c	2005-10-18 13:58:54.000000000 +0200
@@ -49,27 +49,27 @@
 // <http://www.avio-systems.com/dtvcc/iso639-2.txt>
 // <http://www.loc.gov/standards/iso639-2/englangn_ascii.html>
 char *gLanguages[][2] = { 
-  "","",       //None
-  "eng","",    //English
-  "deu","ger", //Deutsch
-  "slv","",    //Slovenian
-  "ita","",    //Italian
-  "dut","nld", //Dutch
-  "por","",    //Portuguese
-  "fre","fra", //French
-  "nor","",    //Norwegian
-  "fin","suo", //Finnish
-  "pol","",    //Polish
-  "spa","esl", //Spanish
-  "gre","ell", //Greek
-  "swe","sve", //Swedish
-  "ron","rum", //Romanian
-  "hun","",    //Hungarian
-  "cat","",    //Catalanian
-  "rus","",    //Russian
-  "hrv","scr", //Croatian
-  "est","",    //Estonian
-  "dan",""     //Danish
+  { "","" },       //None
+  { "eng","" },    //English
+  { "deu","ger" }, //Deutsch
+  { "slv","" },    //Slovenian
+  { "ita","" },    //Italian
+  { "dut","nld" }, //Dutch
+  { "por","" },    //Portuguese
+  { "fre","fra" }, //French
+  { "nor","" },    //Norwegian
+  { "fin","suo" }, //Finnish
+  { "pol","" },    //Polish
+  { "spa","esl" }, //Spanish
+  { "gre","ell" }, //Greek
+  { "swe","sve" }, //Swedish
+  { "ron","rum" }, //Romanian
+  { "hun","" },    //Hungarian
+  { "cat","" },    //Catalanian
+  { "rus","" },    //Russian
+  { "hrv","scr" }, //Croatian
+  { "est","" },    //Estonian
+  { "dan",""}      //Danish
 };
 const char *gLanguageNames[] = {
   "-",


More information about the pkg-vdr-dvb-devel mailing list