summaryrefslogtreecommitdiff
path: root/libsi
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-12-06 12:57:45 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2009-12-06 12:57:45 +0100
commit6a208294bef44f588e067383aa2e35af1aa23a16 (patch)
tree463f2aa875c26a6d0df507c2559a9bb821111082 /libsi
parent1b973fd8ebb0a5dca7c82fac0651c33ecb7edd50 (diff)
downloadvdr-6a208294bef44f588e067383aa2e35af1aa23a16.tar.gz
vdr-6a208294bef44f588e067383aa2e35af1aa23a16.tar.bz2
Several code modifications to avoid compiler warnings
Diffstat (limited to 'libsi')
-rw-r--r--libsi/si.c3
-rw-r--r--libsi/si.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/libsi/si.c b/libsi/si.c
index 49464baf..01ab9bf2 100644
--- a/libsi/si.c
+++ b/libsi/si.c
@@ -6,7 +6,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
- * $Id: si.c 1.25 2008/03/05 17:00:55 kls Exp $
+ * $Id: si.c 2.1 2009/12/05 16:20:12 kls Exp $
* *
***************************************************************************/
@@ -720,6 +720,7 @@ Descriptor *Descriptor::getDescriptor(CharArray da, DescriptorTagDomain domain,
break;
}
break;
+ default: ; // unknown domain, nothing to do
}
d->setData(da);
return d;
diff --git a/libsi/si.h b/libsi/si.h
index 9d47d306..b28b14ab 100644
--- a/libsi/si.h
+++ b/libsi/si.h
@@ -6,7 +6,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
- * $Id: si.h 2.1 2008/09/06 12:44:06 kls Exp $
+ * $Id: si.h 2.2 2009/12/06 11:37:35 kls Exp $
* *
***************************************************************************/
@@ -411,6 +411,8 @@ public:
return data.FourBytes(index);
case 8:
return (SixtyFourBit(data.FourBytes(index)) << 32) | data.FourBytes(index+4);
+ default:
+ return 0; // just to avoid a compiler warning
}
return 0; // just to avoid a compiler warning
}