Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] AIO-14.08 Patch for strict compiler



Hi,

I made a little patch (with Gregoire's instructions) that modifies the 
sources that they compile with stricter compilers like gcc3.x:


================== >8 ==== Snip =========================

diff -u vdr.aio/dvbapi.c vdr.gcc/dvbapi.c
--- vdr.aio/dvbapi.c    Sun Aug 18 04:32:18 2002
+++ vdr.gcc/dvbapi.c    Sun Aug 18 04:30:49 2002
@@ -1101,7 +1101,7 @@
 
 void cPlayBuffer::PlayExternalDolby(const uchar *b, int MaxLength)
 {
-  std::PlayExternalDolby(b, MaxLength, skipAC3bytes);
+  ::PlayExternalDolby(b, MaxLength, skipAC3bytes);
 }
 
 void cPlayBuffer::Output(void)
@@ -2330,7 +2330,7 @@
      if (b[0] == 0x00 && b[1] == 0x00 && b[2] == 0x01) {
         switch (b[3]) {
            case 0xBD: // dolby
-              std::PlayExternalDolby(&b[0], Length-6, false);
+              ::PlayExternalDolby(&b[0], Length-6, false);
               break;
            default:
               dsyslog(LOG_INFO, "LiveAC3 has seen broken frame");
@@ -3394,7 +3394,7 @@
      siProcessor->SetStatus(status);
 }
 
-void cDvbApi::SetModeReplay(boolean audio=true)
+void cDvbApi::SetModeReplay(boolean audio)
 {
   // Sets up the DVB device for replay
 
 
 
 
diff -u vdr.aio/menu.c vdr.gcc/menu.c
--- vdr.aio/menu.c    Sun Aug 18 04:32:19 2002
+++ vdr.gcc/menu.c    Sun Aug 18 04:30:51 2002
@@ -543,7 +543,7 @@
   virtual eOSState ProcessKey(eKeys Key);
   };
 
-cMenuEditStrItem::cMenuEditStrItem(const char *Name, char *Value, int 
Length, const char *Allowed, int Width = 30)
+cMenuEditStrItem::cMenuEditStrItem(const char *Name, char *Value, int 
Length, const char *Allowed, int Width)
 :cMenuEditItem(Name)
 {
   value = Value;

================== >8 ==== Snip =========================


With those changes everything compiles fine for me :-)







Home | Main Index | Thread Index